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.
This PR contains a:
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.