MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / saveTimer

Function saveTimer

scripts/web_timer.js:448–455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 =

Callers 1

runFunction · 0.85

Calls 1

getTodayTimerFunction · 0.85

Tested by

no test coverage detected