summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-20 15:18:09 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-20 15:18:39 -0500
commit45919a356f358980888f1362f0d258df447a21b1 (patch)
treeb85f5e595ec98370c794f881ae534f0c202e7fa9 /js
parenta3285faac1b2c9486bbbd8fe75efdb83b3daffdc (diff)
Support SSL for the Google Client Location API
Diffstat (limited to 'js')
-rw-r--r--js/geometa.js2
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);
}