forked from 0x2620/oxjs
use same protocol as site to get maps js
This commit is contained in:
parent
d2d92c1ae9
commit
8f3be96828
2 changed files with 3 additions and 2 deletions
|
|
@ -450,7 +450,8 @@ Ox.Map = function(options, self) {
|
|||
delete window.googleCallback;
|
||||
initMap();
|
||||
};
|
||||
$.getScript('http://maps.google.com/maps/api/js?callback=googleCallback&sensor=false');
|
||||
$.getScript(document.location.protocol
|
||||
+ '//maps.google.com/maps/api/js?callback=googleCallback&sensor=false');
|
||||
} else {
|
||||
(function interval() {
|
||||
window.google ? initMap() : setTimeout(interval, 100);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue