Nandika-A / EyeProtection

Browser extension for 20 20 20 rule
MIT License
6 stars 9 forks source link

Extension getting closed on mouse click or tab switch #1

Closed Nandika-A closed 6 months ago

Nandika-A commented 10 months ago

On clicking anywhere on screen or tab switching, the extension should get minimized and only timer should get displayed. However, it gets closed and then timer restarts.

LyubomirT commented 6 months ago

@Nandika-A That's a browser limitation, extensions get closed whenever you click anywhere outside of it.

Nandika-A commented 6 months ago

@Nandika-A That's a browser limitation, extensions get closed whenever you click anywhere outside of it.

Yes, but there should be some way so that the timer continues running and the user's work and break intervals are accurately tracked.

LyubomirT commented 6 months ago

@Nandika-A That's a browser limitation, extensions get closed whenever you click anywhere outside of it.

Yes, but there should be some way so that the timer continues running and the user's work and break intervals are accurately tracked.

If that's the case, then my fix (in progress) for #2 is going to incorporate that as well, since the pull request won't work without this feature.

EDIT: I managed to get it to work. Now the timer continues counting even if the popup is closed.