diff --git a/code/portal_detail_display.js b/code/portal_detail_display.js index 7d02d424..c47a4eee 100644 --- a/code/portal_detail_display.js +++ b/code/portal_detail_display.js @@ -44,7 +44,9 @@ window.renderPortalDetails = function(guid) { var resoDetails = '' + getResonatorDetails(d) + '
'; setPortalIndicators(d); - var img = d.imageByUrl && d.imageByUrl.imageUrl ? d.imageByUrl.imageUrl : DEFAULT_PORTAL_IMG; + var img = d.imageByUrl && d.imageByUrl.imageUrl + ? d.imageByUrl.imageUrl.replace(/^http:/, 'https:') + : DEFAULT_PORTAL_IMG; var lat = d.locationE6.latE6; var lng = d.locationE6.lngE6;