1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-01-10 13:48:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

删除番茄钟过多的调试输出

This commit is contained in:
程序员小墨 2022-02-09 21:02:31 +08:00
parent cd112cf6b5
commit 44ffa4bc3f

View File

@ -100,7 +100,6 @@ function countdown({ minutes, seconds, status }) {
(seconds < 10 ? "0" : "") +
seconds;
// countdownTimer.innerHTML = currentTimer; 拿到
console.log("分秒=============", minutes, seconds);
chrome.storage.sync.set({
pomoData: {
@ -112,7 +111,7 @@ function countdown({ minutes, seconds, status }) {
},
function() {
if (!chrome.runtime.error) {
console.log("started");
// console.log("started");
}
}
);
@ -125,11 +124,11 @@ function countdown({ minutes, seconds, status }) {
chrome.browserAction.setBadgeText({ text: "" });
}, 2000)
} else {
chrome.browserAction.setBadgeText({ text: pomoData.minutes.toString() + ":" + pomoData.seconds.toString() });
chrome.browserAction.setBadgeText({ text: currentTimer });
}
});
console.log(currentTimer);
// console.log(currentTimer);
// count down every second, when a minute is up, countdown one minute
// when time reaches 0:00, reset
if (seconds > 0) {
@ -149,7 +148,7 @@ function countdown({ minutes, seconds, status }) {
},
function() {
if (!chrome.runtime.error) {
console.log("started");
// console.log("started");
}
}
);