Skip to content

Commit

Permalink
extension: fix request tracking being frequently broken on Chromium
Browse files Browse the repository at this point in the history
Introduced by 00e0f01.
  • Loading branch information
oxij committed Oct 14, 2024
1 parent 5be0c06 commit a69fa68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/background/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3244,7 +3244,7 @@ function handleBeforeRequest(e) {
reqres.originUrl = e.originUrl; // Firefox
else if (isDefinedURL(e.initiator)
&& e.initiator !== "null"
&& !e.originUrl.startsWith(selfURL)) // just in case
&& !e.initiator.startsWith(selfURL)) // just in case
reqres.originUrl = e.initiator; // Chromium

if (e.requestBody !== undefined && e.requestBody !== null) {
Expand Down

0 comments on commit a69fa68

Please sign in to comment.