Skip to content

Commit

Permalink
enable webRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
cgorringe committed Oct 12, 2024
1 parent 634e3aa commit 1b6038e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion webextension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"contextMenus",
"notifications",
"storage",
"scripting"
"scripting",
"webRequest"
],
"host_permissions": [
"https://archive.org/*",
Expand Down
4 changes: 2 additions & 2 deletions webextension/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ chrome.action.onClicked.addListener((tab) => {
// )

// chrome.webRequest.onErrorOccurred is not supported in manifest v3.
/*

// Checks for error in page loading such as when a domain doesn't exist.
//
chrome.webRequest.onErrorOccurred.addListener((details) => {
Expand Down Expand Up @@ -475,7 +475,7 @@ chrome.webRequest.onCompleted.addListener((details) => {
}
}
}, { urls: ['<all_urls>'], types: ['main_frame'] })
*/

// Check for 404 Not Found and other status errors.
// pass these keys in details: { tabId, statusCode, url }
//
Expand Down

0 comments on commit 1b6038e

Please sign in to comment.