Skip to content

Commit

Permalink
fix: unneeded reference to process.env
Browse files Browse the repository at this point in the history
  • Loading branch information
sijakret committed Nov 5, 2020
1 parent 43774f3 commit 994d6bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ let _visible:Boolean;
function updatePageVisibility(visible = !document.hidden){
_visible = visible;
}

updatePageVisibility();
document.addEventListener('visibilitychange', () => updatePageVisibility(), false);

Expand Down

0 comments on commit 994d6bf

Please sign in to comment.