about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2021-04-16 13:10:19 +1000
committerSimonBrazell <simon@brazell.com.au>2021-04-16 13:10:19 +1000
commit972ad1299e81ca58967db47c17df9c72cf145979 (patch)
treed2b2e699ef1f2634f3d9c55edc3fc0c2a4d5bcdf /src
parentFixes #135 - Handle Twitter usernames with "tweets" in them. (diff)
downloadlibredirect-972ad1299e81ca58967db47c17df9c72cf145979.zip
Fixes #146 - OSM redirect breaks Google Earth
Diffstat (limited to 'src')
-rw-r--r--src/pages/background/background.js3
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 = "";