-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
Fix the JS logic of pomodoro timer . It does not work on clicking the Start Button.
When the start button is clicked, it just changes pause button but the extension API is not called so the real timer never runs.
chrome.runtime.sendMessage(EXTENSION_ID, { command: "startTimer" })
If no extension is installed, window.chrome.runtime is undefined.
Hence, the countdown doesn’t start and timeLeft never decreases.
i think if we simplify the timer and remove the Chrome dependency entirely and run the timer using standard JS intervals.
or your earlier logic only.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels