Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
foreground-service
: Listen to tab visibility change event (#1878)
Fixes #1872. This makes the foreground service also listen to the `visibilitychange` event to stop and resume foreground activity when the tab is changed or the browser is closed. See https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event. -- Signed-off-by: Florian Hotze <[email protected]>
- Loading branch information