fix
This commit is contained in:
parent
2fcfef3410
commit
81cf6467b3
@ -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" });
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
@ -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": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user