Timing tweaks. Fix #105

This commit is contained in:
2020-06-11 11:20:21 +02:00
parent 9848d6a195
commit f94d0466f6
5 changed files with 51 additions and 29 deletions

View File

@@ -440,4 +440,8 @@ class BrowserMod {
}
window.browser_mod = window.browser_mod || new BrowserMod();
const bases = [customElements.whenDefined('home-assistant-main'), customElements.whenDefined('hui-view')];
Promise.race(bases).then(() => {
window.browser_mod = window.browser_mod || new BrowserMod();
});