diff options
author | SimonBrazell <simon@brazell.com.au> | 2021-04-16 13:10:19 +1000 |
---|---|---|
committer | SimonBrazell <simon@brazell.com.au> | 2021-04-16 13:10:19 +1000 |
commit | 972ad1299e81ca58967db47c17df9c72cf145979 (patch) | |
tree | d2b2e699ef1f2634f3d9c55edc3fc0c2a4d5bcdf /src/pages/background | |
parent | Fixes #135 - Handle Twitter usernames with "tweets" in them. (diff) | |
download | libredirect-972ad1299e81ca58967db47c17df9c72cf145979.zip |
Fixes #146 - OSM redirect breaks Google Earth
Diffstat (limited to 'src/pages/background')
-rw-r--r-- | src/pages/background/background.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js index ce004db4..87bc8dda 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -360,6 +360,9 @@ function redirectGoogleMaps(url, initiator) { if (disableOsm || isException(url, initiator)) { return null; } + if (initiator.host === "earth.google.com") { + return null; + } let redirect; let mapCentre = ""; let params = ""; |