From 56ff47658b799119dad8eccd1f60a5bb1b46123d Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Thu, 9 Apr 2020 19:20:18 +0200 Subject: [PATCH] Correct document.visibilityState --- src/components/apphost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/apphost.js b/src/components/apphost.js index 294ecb09f..ff113b7a9 100644 --- a/src/components/apphost.js +++ b/src/components/apphost.js @@ -454,7 +454,7 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f if (doc) { doc.addEventListener(visibilityChange, function () { /* eslint-disable-next-line compat/compat */ - if (document[visibilityState]) { + if (document.visibilityState) { onAppHidden(); } else { onAppVisible();