()
| 446 | } |
| 447 | |
| 448 | async function saveTimer() { |
| 449 | let { web_timer, host, today, value } = await getTodayTimer(); |
| 450 | let newValue = value + focusTimerValue; |
| 451 | web_timer[today][host] = newValue; |
| 452 | savedTimerValue = newValue; |
| 453 | focusTimerValue = 0; |
| 454 | await chrome.storage.local.set({ web_timer }); |
| 455 | } |
| 456 | |
| 457 | async function getTodayTimer() { |
| 458 | let host = |