From 45919a356f358980888f1362f0d258df447a21b1 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Fri, 20 Nov 2009 15:18:09 -0500 Subject: Support SSL for the Google Client Location API --- js/geometa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') 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); } -- cgit v1.2.3-54-g00ecf