try and figure out why it works on Desktop but not Android still
This commit is contained in:
13
proxy.js
13
proxy.js
@@ -1,3 +1,4 @@
|
||||
var titlepref = chrome.i18n.getMessage("titlePreface");
|
||||
var webpref = chrome.i18n.getMessage("webPreface");
|
||||
var webprefpriv = chrome.i18n.getMessage("webPrefacePrivate");
|
||||
var routerpref = chrome.i18n.getMessage("routerPreface");
|
||||
@@ -126,7 +127,17 @@ var handleContextProxyRequest = async function(requestDetails) {
|
||||
};
|
||||
var tabFind = async function(tabId) {
|
||||
try {
|
||||
console.log("(proxy) forcing context", tabId.cookieStoreId);
|
||||
context = await browser.contextualIdentities.query({
|
||||
name: titlepref
|
||||
});
|
||||
console.log(
|
||||
"(scrub) forcing context",
|
||||
titlepref,
|
||||
tabId.cookieStoreId,
|
||||
"=>",
|
||||
context[0].cookieStoreId
|
||||
);
|
||||
tabId.cookieStoreId = context[0].cookieStoreId;
|
||||
return tabId;
|
||||
} catch (error) {
|
||||
console.log("(proxy)Context Error", error);
|
||||
|
||||
2
scrub.js
2
scrub.js
@@ -60,7 +60,6 @@ var contextScrub = async function(requestDetails) {
|
||||
context = await browser.contextualIdentities.query({
|
||||
name: titlepref
|
||||
});
|
||||
tabId.cookieStoreId = context[0].cookieStoreId;
|
||||
console.log(
|
||||
"(scrub) forcing context",
|
||||
titlepref,
|
||||
@@ -68,6 +67,7 @@ var contextScrub = async function(requestDetails) {
|
||||
"=>",
|
||||
context[0].cookieStoreId
|
||||
);
|
||||
tabId.cookieStoreId = context[0].cookieStoreId;
|
||||
return tabId;
|
||||
} catch (error) {
|
||||
console.log("(scrub)Context Error", error);
|
||||
|
||||
Reference in New Issue
Block a user