From 994d6bfac75b9bc516bbff301fc00b06b49c2aaa Mon Sep 17 00:00:00 2001 From: JanK Date: Thu, 5 Nov 2020 03:01:50 +0100 Subject: [PATCH] fix: unneeded reference to process.env --- src/core/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/utils.ts b/src/core/utils.ts index 8d5cfa7..e1f1814 100644 --- a/src/core/utils.ts +++ b/src/core/utils.ts @@ -185,6 +185,7 @@ let _visible:Boolean; function updatePageVisibility(visible = !document.hidden){ _visible = visible; } + updatePageVisibility(); document.addEventListener('visibilitychange', () => updatePageVisibility(), false);