mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-10-09 09:15:14 +08:00
manifest.json升级到mv3(mv3的omnibox有Bug,见:https://bugs.chromium.org/p/chromium/issues/detail?id=1186804)
This commit is contained in:
14
packages/shell-chrome/service-worker.js
Normal file
14
packages/shell-chrome/service-worker.js
Normal file
@@ -0,0 +1,14 @@
|
||||
try {
|
||||
// 清除控制台
|
||||
console.clear();
|
||||
|
||||
// refer: https://www.cuoshuo.com/blog/340811.html
|
||||
importScripts(
|
||||
// 右键菜单
|
||||
"assets/js/contextMenus.js",
|
||||
|
||||
// 高级搜索
|
||||
"assets/js/advanced-search/background.js"
|
||||
);
|
||||
|
||||
} catch (e) { console.error(e) }
|
Reference in New Issue
Block a user