From 2e2779926d416550743583c3b34388276e550ac2 Mon Sep 17 00:00:00 2001 From: Viktar Donich Date: Wed, 24 Aug 2016 20:35:58 -0700 Subject: [PATCH] Stop-gap fix for runtime exception Bug: Issue 4438 Change-Id: I82fe43a1727222d156893b0670a2abfa1950ee1c --- polygerrit-ui/app/elements/core/gr-router/gr-router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polygerrit-ui/app/elements/core/gr-router/gr-router.js b/polygerrit-ui/app/elements/core/gr-router/gr-router.js index e0bd300f65..6e4d1d40f9 100644 --- a/polygerrit-ui/app/elements/core/gr-router/gr-router.js +++ b/polygerrit-ui/app/elements/core/gr-router/gr-router.js @@ -18,13 +18,14 @@ // custom element having the id "app", but it is made explicit here. var app = document.querySelector('#app'); var restAPI = document.createElement('gr-rest-api-interface'); - var reporting = document.createElement('gr-reporting'); window.addEventListener('WebComponentsReady', function() { if (!app) { console.log('No gr-app found (runing in test mode)'); return; } + // TODO (viktard): Fix properly. + var reporting = app.$.reporting; reporting.timeEnd('WebComponentsReady'); reporting.pageLoaded();