Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unhandled rejection error from visibility change events #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshkel
Copy link

@joshkel joshkel commented Apr 19, 2023

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

Visibility change events may cause unhandled rejection errors. This creates extra console noise and may trigger spurious errors in error-reporting services like Sentry.

Breaking Changes

None.

Additional Info

I believe that NoSleep.js should suppress any errors thrown from visibility change events, since there isn't anything that callers can do about them.

Visibility change events could result in unhandled rejection errors.  I believe that NoSleep.js should suppress them, since there isn't anything that callers can do about it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant