feat: Extensive refactoring and modification to support any number of interfaces

This commit is contained in:
Gabe
2025-09-24 23:24:00 +08:00
parent 779c9fc850
commit 2a46939aa5
65 changed files with 2054 additions and 1947 deletions

View File

@@ -49,7 +49,7 @@ async function addContextMenus(contextMenuType = 1) {
try {
await browser.contextMenus.removeAll();
} catch (err) {
kissLog(err, "remove contextMenus");
kissLog("remove contextMenus", err);
}
switch (contextMenuType) {
@@ -122,7 +122,7 @@ async function updateCspRules(csplist = DEFAULT_CSPLIST.join(",\n")) {
addRules: newRules,
});
} catch (err) {
kissLog(err, "update csp rules");
kissLog("update csp rules", err);
}
}