about summary refs log tree commit diff stats
path: root/src/pages/options/maps
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-05-04 13:59:37 +0300
committerManeraKai <manerakai@protonmail.com>2022-05-04 13:59:37 +0300
commita28cccfde07e76d1e70d2acfe1c2222d8b8ae705 (patch)
tree4fdefa52a12f7a158006f1b7ba3b54cd468b97fe /src/pages/options/maps
parentFix incorrect localization (#236) (diff)
downloadlibredirect-a28cccfde07e76d1e70d2acfe1c2222d8b8ae705.zip
Simplified code. Removed pixivMoe, old.reddit.com #239
Diffstat (limited to 'src/pages/options/maps')
-rw-r--r--src/pages/options/maps/maps.html1
-rw-r--r--src/pages/options/maps/maps.js24
2 files changed, 2 insertions, 23 deletions
diff --git a/src/pages/options/maps/maps.html b/src/pages/options/maps/maps.html
index d4288761..fe18892a 100644
--- a/src/pages/options/maps/maps.html
+++ b/src/pages/options/maps/maps.html
@@ -23,7 +23,6 @@
       <div class="title"> <img src="../../../assets/images/tiktok-icon.png"><a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a></div>
       <div class="title"> <img src="../../../assets/images/reddit-icon.png"><a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a></div>
       <div class="title"> <img src="../../../assets/images/imgur-icon.png"><a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a></div>
-      <div class="title"> <img src="../../../assets/images/pixiv-icon.svg"><a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a></div>
       <div class="title"> <img src="../../../assets/images/librespeed-icon.svg"><a href="../speedtest/speedtest.html" data-localise="__MSG_speedtest__">Speedtest</a></div>
       <div class="title"> <img src="../../../assets/images/spotify-icon.png"><a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a></div>
       <div class="title"> <img src="../../../assets/images/wikipedia-icon.svg"><a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a></div>
diff --git a/src/pages/options/maps/maps.js b/src/pages/options/maps/maps.js
index 17c628dd..982b7980 100644
--- a/src/pages/options/maps/maps.js
+++ b/src/pages/options/maps/maps.js
@@ -33,17 +33,7 @@ mapsHelper.init().then(() => {
     changeFrontendsSettings(frontend);
 
     browser.storage.local.get("facilLatency").then(r => {
-        commonHelper.processDefaultCustomInstances(
-            'facil',
-            'normal',
-            mapsHelper,
-            document,
-            mapsHelper.getFacilNormalRedirectsChecks,
-            mapsHelper.setFacilNormalRedirectsChecks,
-            mapsHelper.getFacilNormalCustomRedirects,
-            mapsHelper.setFacilNormalCustomRedirects,
-            r.facilLatency,
-        )
+        commonHelper.processDefaultCustomInstances('facil', 'normal', mapsHelper, document, r.facilLatency)
     })
 })
 
@@ -60,17 +50,7 @@ latencyElement.addEventListener("click",
         commonHelper.testLatency(latencyLabel, redirects.facil.normal).then(r => {
             browser.storage.local.set({ facilLatency: r });
             latencyLabel.innerHTML = oldHtml;
-            commonHelper.processDefaultCustomInstances(
-                'facil',
-                'normal',
-                mapsHelper,
-                document,
-                mapsHelper.getFacilNormalRedirectsChecks,
-                mapsHelper.setFacilNormalRedirectsChecks,
-                mapsHelper.getFacilNormalCustomRedirects,
-                mapsHelper.setFacilNormalCustomRedirects,
-                r,
-            );
+            commonHelper.processDefaultCustomInstances('facil', 'normal', mapsHelper, document);
             latencyElement.removeEventListener("click", reloadWindow);
         });
     }