Last active
March 23, 2021 14:50
-
-
Save MarsiBarsi/118c6aedb0ea7c80cdd3ecfa08d61bfb to your computer and use it in GitHub Desktop.
Revisions
-
MarsiBarsi revised this gist
Mar 23, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ const pageVisibility$ = fromEvent(documentRef, 'visibilitychange').pipe( startWith(0), map(() => documentRef.visibilityState !== 'hidden'), distinctUntilChanged(), ); -
MarsiBarsi created this gist
Mar 23, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ const pageVisibility$ = fromEvent(documentRef, 'visibilitychange').pipe( startWith(0), map(() => documentRef.visibilityState !== 'hidden'), );