Stop-gap fix for runtime exception
Bug: Issue 4438 Change-Id: I82fe43a1727222d156893b0670a2abfa1950ee1c
This commit is contained in:
parent
b406068303
commit
2e2779926d
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user