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