linting fixes
This commit is contained in:
parent
eb008c724d
commit
3824a95058
|
@ -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]}
|
||||
|
|
Loading…
Reference in New Issue