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(
|
chrome.webRequest.onBeforeRequest.addListener(
|
||||||
function(details) {
|
function(details) {
|
||||||
|
|
||||||
// Exclude poll pages
|
// Exclude poll pages
|
||||||
if (details.url.match(/^https?:\/\/(www.)*reddit.com\/poll/)){
|
if (details.url.match(/^https?:\/\/(www.)*reddit.com\/poll/)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
return {redirectUrl: oldReddit + details.url.match(/^https?:\/\/[^\/]+([\S\s]*)/)[1]}
|
return {redirectUrl: oldReddit + details.url.match(/^https?:\/\/[^\/]+([\S\s]*)/)[1]}
|
||||||
|
|
Loading…
Reference in New Issue