Support SSL for the Google Client Location API
This commit is contained in:
parent
a3285faac1
commit
45919a356f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user