about summary refs log tree commit diff stats
path: root/src/pages/background/background.js
diff options
context:
space:
mode:
authorKotuklion <quemasterbog@gmail.com>2021-07-12 18:30:54 +0200
committerKotuklion <quemasterbog@gmail.com>2021-07-12 18:30:54 +0200
commit058ca7b6e05eabe2fa4efbd31f9a7b161579e40d (patch)
tree3c453cf3a7c64fc859ef3324f620cf8fd288b813 /src/pages/background/background.js
parentfix minor typos (diff)
downloadlibredirect-058ca7b6e05eabe2fa4efbd31f9a7b161579e40d.zip
left some unnecessary spaces here and there
Diffstat (limited to 'src/pages/background/background.js')
-rw-r--r--src/pages/background/background.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index 0b039180..00dd00d6 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -163,7 +163,6 @@ browser.storage.onChanged.addListener((changes) => {
     simplyTranslateInstance =
       changes.simplyTranslateInstance.newValue || simplyTranslateDefault;
   }
-
   if ("wikipediaInstance" in changes) {
     wikipediaInstance =
 	changes.wikipediaInstance.newValue || wikipediaDefault;
@@ -554,7 +553,6 @@ function redirectWikipedia(url, initiator) {
       link += "?mobileaction=toggle_view_mobile";
     else
       link += `?lang=${urlSplit[0]}`;
-      
     if (urlSplit[1] == 'm')
       link += "&mobileaction=toggle_view_mobile";
       //wikiless doesn't have mobile view support yet
@@ -569,14 +567,12 @@ browser.webRequest.onBeforeRequest.addListener(
   (details) => {
     const url = new URL(details.url);
     let initiator;
-
     if (details.originUrl) {
       initiator = new URL(details.originUrl);
     } else if (details.initiator) {
       initiator = new URL(details.initiator);
     }
     let redirect;
-    
     if (youtubeDomains.includes(url.host)) {
       redirect = {
         redirectUrl: redirectYouTube(url, initiator, details.type),