diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-20 15:18:09 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-20 15:18:39 -0500 |
commit | 45919a356f358980888f1362f0d258df447a21b1 (patch) | |
tree | b85f5e595ec98370c794f881ae534f0c202e7fa9 | |
parent | a3285faac1b2c9486bbbd8fe75efdb83b3daffdc (diff) |
Support SSL for the Google Client Location API
-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); } |