Skip to content

Commit

Permalink
Stop requiring webRequestBlocking
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Dec 17, 2023
1 parent 5109951 commit e76dda5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ function detectJSON(event: chrome.webRequest.WebResponseHeadersDetails) {
}

// Listen for onHeaderReceived for the target page.
// Set "blocking" and "responseHeaders".
chrome.webRequest.onHeadersReceived.addListener(
detectJSON,
{ urls: ["<all_urls>"], types: ["main_frame"] },
["blocking", "responseHeaders"]
["responseHeaders"]
);

// Listen for a message from the content script to decide whether to operate on
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"js": ["content.js"]
}
],
"permissions": ["<all_urls>", "webRequest", "webRequestBlocking"],
"permissions": ["<all_urls>", "webRequest"],
"applications": {
"gecko": {
"id": "[email protected]"
Expand Down

0 comments on commit e76dda5

Please sign in to comment.