From e2866a133958563c381c44805207606cf9ecdb2a Mon Sep 17 00:00:00 2001 From: Boyi C Date: Sun, 17 Sep 2017 04:00:54 +0800 Subject: [PATCH] Load WebComponent polyfill on header. (#9438) * Load WebComponent polyfill on header. On Chrome 53, `document.registerElement` exists but `window.customElements` does not exist. Fix for Tencent X5 browser on Android(Chrome 53 based). * Move the block just before app panel loading. Remove async for new script block. --- .../components/frontend/templates/index.html | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/homeassistant/components/frontend/templates/index.html b/homeassistant/components/frontend/templates/index.html index 6d199a86a50..70e7e777510 100644 --- a/homeassistant/components/frontend/templates/index.html +++ b/homeassistant/components/frontend/templates/index.html @@ -92,6 +92,18 @@ {% if not dev_mode %} {% endif %} + {% if panel_url -%} @@ -100,19 +112,5 @@ {% for extra_url in extra_urls -%} {% endfor -%} - -