调整目录

This commit is contained in:
2024-11-11 18:00:55 +08:00
parent de14b1e1f0
commit 2849e26845
20 changed files with 214 additions and 186 deletions

View File

@ -1,6 +1,4 @@
chrome.runtime.onConnect.addListener((port) => {
console.log("service worker connected", port);
});
import { ExtServer } from "@Packages/message/extension";
async function setupOffscreenDocument() {
// 创建运行后台脚本的沙盒环境
@ -18,4 +16,11 @@ async function setupOffscreenDocument() {
});
}
setupOffscreenDocument();
async function main() {
// 初始化沙盒环境
await setupOffscreenDocument();
// 监听消息
new ExtServer();
}
main();