This commit is contained in:
luke 2025-06-09 13:48:38 +08:00
parent 2fcfef3410
commit 81cf6467b3
2 changed files with 0 additions and 16 deletions

View File

@ -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" });
// }
// });
// });

View File

@ -8,9 +8,6 @@
"http://app.wisdompulse.cn/*", "http://app.wisdompulse.cn/*",
"http://share.wisdompulse.cn/*" "http://share.wisdompulse.cn/*"
], ],
"background": {
"service_worker": "background.js"
},
"action": { "action": {
"default_popup": "pages/index.html", "default_popup": "pages/index.html",
"default_icon": { "default_icon": {