fix: remove browser contextMenus (issue #262)

This commit is contained in:
Gabe
2025-08-09 21:31:32 +08:00
parent c9eb423c89
commit 61571e0f61

View File

@@ -45,9 +45,9 @@ const REMOVE_HEADERS = [
async function addContextMenus(contextMenuType = 1) {
// 添加前先删除,避免重复ID的错误
try {
await browser.menus.removeAll();
await browser.contextMenus.removeAll();
} catch (err) {
//
kissLog(err, "remove contextMenus");
}
switch (contextMenuType) {