linting fixes

This commit is contained in:
Tom Watson 2018-12-06 15:58:41 +01:00
parent eb008c724d
commit 3824a95058
1 changed files with 2 additions and 3 deletions

View File

@ -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]}