mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-03-13 09:23:34 +08:00
删除番茄钟过多的调试输出
This commit is contained in:
parent
cd112cf6b5
commit
44ffa4bc3f
@ -100,7 +100,6 @@ function countdown({ minutes, seconds, status }) {
|
|||||||
(seconds < 10 ? "0" : "") +
|
(seconds < 10 ? "0" : "") +
|
||||||
seconds;
|
seconds;
|
||||||
// countdownTimer.innerHTML = currentTimer; 拿到
|
// countdownTimer.innerHTML = currentTimer; 拿到
|
||||||
console.log("分秒=============", minutes, seconds);
|
|
||||||
|
|
||||||
chrome.storage.sync.set({
|
chrome.storage.sync.set({
|
||||||
pomoData: {
|
pomoData: {
|
||||||
@ -112,7 +111,7 @@ function countdown({ minutes, seconds, status }) {
|
|||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
if (!chrome.runtime.error) {
|
if (!chrome.runtime.error) {
|
||||||
console.log("started");
|
// console.log("started");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -125,11 +124,11 @@ function countdown({ minutes, seconds, status }) {
|
|||||||
chrome.browserAction.setBadgeText({ text: "" });
|
chrome.browserAction.setBadgeText({ text: "" });
|
||||||
}, 2000)
|
}, 2000)
|
||||||
} else {
|
} 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
|
// count down every second, when a minute is up, countdown one minute
|
||||||
// when time reaches 0:00, reset
|
// when time reaches 0:00, reset
|
||||||
if (seconds > 0) {
|
if (seconds > 0) {
|
||||||
@ -149,7 +148,7 @@ function countdown({ minutes, seconds, status }) {
|
|||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
if (!chrome.runtime.error) {
|
if (!chrome.runtime.error) {
|
||||||
console.log("started");
|
// console.log("started");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user