From 3ef53a1846b3982fe52fafa7203334f097e1a1bc Mon Sep 17 00:00:00 2001 From: O2bmm Date: Thu, 3 Oct 2024 05:14:19 +0800 Subject: [PATCH] Update init.js --- js/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/init.js b/js/init.js index f469ae21..84211792 100644 --- a/js/init.js +++ b/js/init.js @@ -317,7 +317,7 @@ function clearRedundant() { chrome.declarativeNetRequest.getSessionRules(function (rules) { let mobileFlag = false; for (let item of rules) { - if (!item.id || !allTabId.has(item.id)) { + if (!allTabId.has(item.id)) { mobileFlag = true; G.featMobileTabId.delete(item.id); chrome.declarativeNetRequest.updateSessionRules({