summaryrefslogtreecommitdiffstats
path: root/src/assets/javascripts/helpers/google-search.js
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2021-01-11 12:39:26 +1100
committerSimonBrazell <simon@brazell.com.au>2021-01-11 12:39:26 +1100
commitf56fc681886450e68fe3597fbcba870436c05ba4 (patch)
treed253aa87ab30e8f1d02e4f71d273a2d0d418cad9 /src/assets/javascripts/helpers/google-search.js
parent20a2713a5688de89b15e9bddc578f998ee28b447 (diff)
downloadprivacy-redirect-f56fc681886450e68fe3597fbcba870436c05ba4.tar.gz
privacy-redirect-f56fc681886450e68fe3597fbcba870436c05ba4.tar.bz2
privacy-redirect-f56fc681886450e68fe3597fbcba870436c05ba4.zip
Fix for https://github.com/mozilla/addons-linter/issues/3541#issue-782801439
Diffstat (limited to 'src/assets/javascripts/helpers/google-search.js')
-rw-r--r--src/assets/javascripts/helpers/google-search.js21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/assets/javascripts/helpers/google-search.js b/src/assets/javascripts/helpers/google-search.js
index dc12042..c83d7c9 100644
--- a/src/assets/javascripts/helpers/google-search.js
+++ b/src/assets/javascripts/helpers/google-search.js
@@ -1,9 +1,12 @@
-export default class {
- static targets = /https?:\/\/(((www|maps)\.)?(google\.).*(\/search)|search\.(google\.).*)/;
- static redirects = [
- { link: "https://duckduckgo.com", q: "/" },
- { link: "https://startpage.com", q: "/search/" },
- { link: "https://www.qwant.com", q: "/" },
- { link: "https://www.mojeek.com", q: "/search" },
- ];
-}
+const targets = /https?:\/\/(((www|maps)\.)?(google\.).*(\/search)|search\.(google\.).*)/;
+const redirects = [
+ { link: "https://duckduckgo.com", q: "/" },
+ { link: "https://startpage.com", q: "/search/" },
+ { link: "https://www.qwant.com", q: "/" },
+ { link: "https://www.mojeek.com", q: "/search" },
+];
+
+export default {
+ targets,
+ redirects,
+};