mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-02 13:23:29 +01:00
check for chrome.webRequest.onAuthRequired
avail
This commit is contained in:
parent
1ea07a6ced
commit
a260d269ec
@ -230,6 +230,7 @@ var bg_isBackground = true,
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (chrome.webRequest && chrome.webRequest.onAuthRequired) {
|
||||||
chrome.webRequest.onAuthRequired.addListener(function (details, callback) {
|
chrome.webRequest.onAuthRequired.addListener(function (details, callback) {
|
||||||
if (!details.url || pendingAuthRequests.indexOf(details.requestId) != -1) {
|
if (!details.url || pendingAuthRequests.indexOf(details.requestId) != -1) {
|
||||||
if (callback) {
|
if (callback) {
|
||||||
@ -295,6 +296,7 @@ var bg_isBackground = true,
|
|||||||
pendingAuthRequests.splice(i, 1);
|
pendingAuthRequests.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var buildingContextMenu = false;
|
var buildingContextMenu = false;
|
||||||
function buildContextMenu(callback) {
|
function buildContextMenu(callback) {
|
||||||
|
Loading…
Reference in New Issue
Block a user