Closed ersimont closed 1 year ago
Extract it from keepWakeLock$()
keepWakeLock$()
export function pageIsVisible$(): Observable<boolean> { return fromEvent(document, 'visibilitychange').pipe( startWith(undefined), map(() => document.visibilityState === 'visible'), distinctUntilChanged(), ); }
Will be in the next release
Extract it from
keepWakeLock$()