fetch portal image via https

This commit is contained in:
Stefan Breunig 2013-02-26 20:57:34 +01:00
parent ebf07602e2
commit 2cb0623c82

View File

@ -44,7 +44,9 @@ window.renderPortalDetails = function(guid) {
var resoDetails = '<table id="resodetails">' + getResonatorDetails(d) + '</table>'; var resoDetails = '<table id="resodetails">' + getResonatorDetails(d) + '</table>';
setPortalIndicators(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 lat = d.locationE6.latE6;
var lng = d.locationE6.lngE6; var lng = d.locationE6.lngE6;