diff options
Diffstat (limited to 'js/geometa.js')
-rw-r--r-- | js/geometa.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/geometa.js b/js/geometa.js index 26b66e768..21deb1885 100644 --- a/js/geometa.js +++ b/js/geometa.js @@ -103,7 +103,7 @@ var AjaxGeoLocation = (function() { if (!hasGoogleLoader() && !loading) { loading = true; var s = document.createElement('script'); - s.src = 'http://www.google.com/jsapi?callback=_google_loader_apiLoaded'; + s.src = (document.location.protocol == "https:"?"https://":"http://") + 'www.google.com/jsapi?callback=_google_loader_apiLoaded'; s.type = "text/javascript"; document.getElementsByTagName('body')[0].appendChild(s); } |