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

增加了badge图标提醒,修改了按钮样式,增加了背景图片

This commit is contained in:
simonzhangs
2022-02-04 17:38:54 +08:00
parent 55719ac943
commit 6a81071152
11 changed files with 144 additions and 455 deletions

View File

@@ -130,15 +130,16 @@ function getTimer() {
//更新后倒计时判断,如果结束则重新初始化界面
if(pomoData.countdownTimer == "00:00"){
audio.play();
audio.play();
//不能放在页面上,要在后台进行
chrome.runtime.sendMessage(
{
status: "init",
status: "playend",
},
(response) => {
console.log(response);
console.log(response,"**************下面");
countdownTimer.innerHTML = "25:00";
startBtn.style.display = "block";
endBtn.style.display = "none";
clearTimer();
@@ -210,5 +211,7 @@ chrome.storage.sync.get("pomoData", ({ pomoData }) => {
status: "init",
});
countdownTimer.innerHTML = "25:00";
}else if(status === 'playend'){
countdownTimer.innerHTML = "25:00";
}
});