diff --git a/background.js b/background.js deleted file mode 100644 index ce0bd02..0000000 --- a/background.js +++ /dev/null @@ -1,13 +0,0 @@ -// // 仅在插件安装时设置默认 popup 页面,不再在 startup 中干扰当前 UI -// chrome.runtime.onInstalled.addListener(() => { -// chrome.storage.local.get(["token", "loginAt"], (res) => { -// const maxAge = 24 * 60 * 60 * 1000; // 1天有效期 -// const now = Date.now(); -// -// if (!res.token || !res.loginAt || (now - res.loginAt > maxAge)) { -// chrome.action.setPopup({ popup: "./pages/login.html" }); -// } else { -// chrome.action.setPopup({ popup: "./pages/popup.html" }); -// } -// }); -// }); diff --git a/manifest.json b/manifest.json index 219f55c..baa64df 100644 --- a/manifest.json +++ b/manifest.json @@ -8,9 +8,6 @@ "http://app.wisdompulse.cn/*", "http://share.wisdompulse.cn/*" ], - "background": { - "service_worker": "background.js" - }, "action": { "default_popup": "pages/index.html", "default_icon": {