diff --git a/background.js b/background.js index 1a317f7..9b83ee7 100644 --- a/background.js +++ b/background.js @@ -21,9 +21,9 @@ chrome.webRequest.onBeforeRequest.addListener( if (excludedSubdomains.indexOf(urlParser.hostname) != -1) return; - for (const path of excludedPaths) - if (urlParser.pathname.indexOf(path) == 0) - return; + for (const path of excludedPaths) { + if (urlParser.pathname.indexOf(path) == 0) return; + } return {redirectUrl: oldReddit + urlParser.pathname}; },