disable localhost isolator for non-routerconsole pages, I am fairly sure it's safe now

This commit is contained in:
idk
2020-10-25 02:29:15 -04:00
parent e09546d6bb
commit 08a1e73008

View File

@@ -423,7 +423,7 @@ var contextSetup = function(requestDetails) {
console.log('(isolate)Context Error', error);
}
};
var localTabFind = async function(tabId) {
/*var localTabFind = async function(tabId) {
try {
var context = await browser.contextualIdentities.query({
name: localpref
@@ -455,7 +455,7 @@ var contextSetup = function(requestDetails) {
} catch (error) {
console.log('(isolate)Context Error', error);
}
};
};*/
var normalTabFind = async function(tabId) {
if (tabId == undefined) {
return;
@@ -587,10 +587,10 @@ var contextSetup = function(requestDetails) {
return requestDetails;
}
} else {
if (localhost) {
/*if (localhost) {
var localtab = tab.then(localTabFind, onContextError);
return requestDetails;
}
}*/
var normalTab = tab.then(normalTabFind, onContextError);
return requestDetails;
//return requestDetails;