Fixes #146 - OSM redirect breaks Google Earth

This commit is contained in:
SimonBrazell 2021-04-16 13:10:19 +10:00
parent f714c666d9
commit 972ad1299e
1 changed files with 3 additions and 0 deletions

View File

@ -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 = "";