From 6d4ad36386341615dccb2300989c20a340e44311 Mon Sep 17 00:00:00 2001 From: Viktar Donich Date: Wed, 9 May 2018 10:14:04 -0700 Subject: [PATCH] Use visibilityState instead of legacy document.hidden Context here: https://www.w3.org/TR/page-visibility/#dom-document-hidden Change-Id: I5bd34c584166f08632d546b2e530a05b0bf57755 --- polygerrit-ui/app/elements/gr-app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polygerrit-ui/app/elements/gr-app.js b/polygerrit-ui/app/elements/gr-app.js index 3dc19efcff..b8660883ec 100644 --- a/polygerrit-ui/app/elements/gr-app.js +++ b/polygerrit-ui/app/elements/gr-app.js @@ -131,7 +131,7 @@ // router has been initialized. @see Issue 7837 this._settingsUrl = Gerrit.Nav.getUrlForSettings(); - this.$.reporting.appStarted(document.hidden); + this.$.reporting.appStarted(document.visibilityState === 'hidden'); this._viewState = { changeView: {