Skip to content

Commit

Permalink
fix: gm_xhr获取重定向后地址
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Nov 15, 2021
1 parent 85cb130 commit 4906c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/apps/grant/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export class BackgroundGrant {
protected dealXhr(config: GM_Types.XHRDetails, xhr: XMLHttpRequest): GM_Types.XHRResponse {
let removeXCat = new RegExp("x-cat-" + this.rand + "-", "g");
let respond: GM_Types.XHRResponse = {
finalUrl: config.url,
finalUrl: xhr.responseURL || config.url,
readyState: <any>xhr.readyState,
status: xhr.status,
statusText: xhr.statusText,
Expand Down

0 comments on commit 4906c79

Please sign in to comment.