From c77fd4ffafb2beca67ddf3c5b9b495c00dafd215 Mon Sep 17 00:00:00 2001 From: O2bmm Date: Thu, 3 Oct 2024 05:28:51 +0800 Subject: [PATCH] Update function.js --- js/function.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/function.js b/js/function.js index 1340739c..3f3843db 100644 --- a/js/function.js +++ b/js/function.js @@ -41,6 +41,7 @@ function isEmpty(obj) { // 修改请求头 function setRequestHeaders(data = {}, callback = undefined) { + chrome.declarativeNetRequest.updateSessionRules({ removeRuleIds: [1] }); chrome.tabs.getCurrent(function (tabs) { const rules = { removeRuleIds: [tabs ? tabs.id : 1] }; if (Object.keys(data).length) {