Skip to content

Fix the JS logic of pomodoro timer. #209

Description

@Kartikeyji17
Image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions