mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-01-10 21:58:14 +08:00
修复番茄钟初始界面问题
This commit is contained in:
parent
dd73fb03ed
commit
7a621d6e25
@ -1,29 +1,4 @@
|
||||
// const btn = document.querySelector("#switch");
|
||||
|
||||
// chrome.storage.sync.get("linkOpen", ({ linkOpen }) => {
|
||||
// btn.checked = linkOpen;
|
||||
// });
|
||||
|
||||
// btn.addEventListener("change", () => {
|
||||
// if (btn.checked) {
|
||||
// chrome.storage.sync.set({ linkOpen: true });
|
||||
// } else {
|
||||
// chrome.storage.sync.set({ linkOpen: false });
|
||||
// }
|
||||
// // 获取当前tab窗口
|
||||
// chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
|
||||
// chrome.scripting.executeScript({
|
||||
// target: { tabId: tabs[0].id },
|
||||
// func: refreshPage,
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
|
||||
// // 刷新页面
|
||||
// function refreshPage() {
|
||||
// window.location.reload();
|
||||
// }
|
||||
|
||||
//元素获取
|
||||
const startBtn = document.getElementById("start-btn");
|
||||
const resetBtn = document.getElementById("reset-btn");
|
||||
const endBtn = document.getElementById("end-btn");
|
||||
|
@ -59,7 +59,7 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||
minutes: 24,
|
||||
seconds: 60,
|
||||
countdownTimer: "25:00",
|
||||
status: "start",
|
||||
status:"init"
|
||||
},
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user