highlighted check is breaking pwa's; add tabid to block result

This commit is contained in:
Fabian Freund
2026-02-12 12:05:18 +01:00
parent 447b3d49ef
commit 623469c574
@@ -157,17 +157,15 @@ export default class BackgroundMain {
"result": {
"originUrl": options.originUrl,
"url": options.url,
"tabId": options.tabId,
"blocked": false
}
});
return {};
} else {
//When tab not selected, block the request
return {
cancel: true,
};
}
// Allow requests when the assigned site already matches the current context,
// even if the tab is not highlighted.
return {};
} else {
//Only send events when tab is selected
if (tab.highlighted) {
@@ -178,6 +176,7 @@ export default class BackgroundMain {
"result": {
"originUrl": options.originUrl,
"url": options.url,
"tabId": options.tabId,
"blocked": true
}
});