From 3824a950587684bec3bae43582b2d7eee5514d52 Mon Sep 17 00:00:00 2001 From: Tom Watson Date: Thu, 6 Dec 2018 15:58:41 +0100 Subject: [PATCH] linting fixes --- background.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index a9cb78e..4b0b185 100644 --- a/background.js +++ b/background.js @@ -2,10 +2,9 @@ const oldReddit = "https://old.reddit.com" chrome.webRequest.onBeforeRequest.addListener( function(details) { - // Exclude poll pages - if (details.url.match(/^https?:\/\/(www.)*reddit.com\/poll/)){ - return + if (details.url.match(/^https?:\/\/(www.)*reddit.com\/poll/)) { + return } return {redirectUrl: oldReddit + details.url.match(/^https?:\/\/[^\/]+([\S\s]*)/)[1]}