]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Support SSL for the Google Client Location API
authorCraig Andrews <candrews@integralblue.com>
Fri, 20 Nov 2009 20:18:09 +0000 (15:18 -0500)
committerCraig Andrews <candrews@integralblue.com>
Fri, 20 Nov 2009 20:18:39 +0000 (15:18 -0500)
js/geometa.js

index 26b66e768ee670957bf244c7c04bf48c0e95d3a3..21deb18852a2102c225af7091bd2d534d56cf201 100644 (file)
@@ -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);
         }