forked from GNUsocial/gnu-social
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) {
|
if (!hasGoogleLoader() && !loading) {
|
||||||
loading = true;
|
loading = true;
|
||||||
var s = document.createElement('script');
|
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";
|
s.type = "text/javascript";
|
||||||
document.getElementsByTagName('body')[0].appendChild(s);
|
document.getElementsByTagName('body')[0].appendChild(s);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user