1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

Import extra_html_url using js instead of deprecated link tags (#3288)

* import extra_html_url using js instead of deprecated link tags

* Import modules instead

* Address comment

* Rename variables for es5 scripts

* Address comments
This commit is contained in:
Thomas Lovén
2019-06-22 05:55:53 +02:00
committed by Paulus Schoutsen
parent 98c419ff03
commit cbdb222f72
+7
View File
@@ -65,6 +65,10 @@
import "<%= latestHassIconsJS %>";
window.customPanelJS = "<%= latestCustomPanelJS %>";
</script>
{% for extra_module in extra_modules -%}
<script type="module" crossorigin="use-credentials" src="{{ extra_module }}"></script>
{% endfor -%}
<script nomodule>
(function() {
@@ -76,6 +80,9 @@
_ls("<%= es5CoreJS %>");
_ls("<%= es5AppJS %>");
_ls("<%= es5HassIconsJS %>");
{% for extra_script in extra_js_es5 -%}
_ls("{{ extra_script }}");
{% endfor -%}
}
})();
</script>