fix(github): url is truncated
This commit is contained in:
@@ -27,9 +27,8 @@ browser.webRequest.onBeforeRequest.addListener(
|
|||||||
if (org === "login") { // OAuth2 path
|
if (org === "login") { // OAuth2 path
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
repo = path[2];
|
|
||||||
return {
|
return {
|
||||||
redirectUrl: `https://${GOTHUB}/${org}/${repo}`
|
redirectUrl: `https://${GOTHUB}${url.pathname}`
|
||||||
};
|
};
|
||||||
} else if (url.hostname === "www.reddit.com") {
|
} else if (url.hostname === "www.reddit.com") {
|
||||||
url.hostname = "old.reddit.com"
|
url.hostname = "old.reddit.com"
|
||||||
|
|||||||
Reference in New Issue
Block a user