Fixes #146 - OSM redirect breaks Google Earth
This commit is contained in:
parent
f714c666d9
commit
972ad1299e
|
@ -360,6 +360,9 @@ function redirectGoogleMaps(url, initiator) {
|
||||||
if (disableOsm || isException(url, initiator)) {
|
if (disableOsm || isException(url, initiator)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if (initiator.host === "earth.google.com") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
let redirect;
|
let redirect;
|
||||||
let mapCentre = "";
|
let mapCentre = "";
|
||||||
let params = "";
|
let params = "";
|
||||||
|
|
Loading…
Reference in New Issue