mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00: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:
parent
98c419ff03
commit
cbdb222f72
@ -65,6 +65,10 @@
|
|||||||
import "<%= latestHassIconsJS %>";
|
import "<%= latestHassIconsJS %>";
|
||||||
window.customPanelJS = "<%= latestCustomPanelJS %>";
|
window.customPanelJS = "<%= latestCustomPanelJS %>";
|
||||||
</script>
|
</script>
|
||||||
|
{% for extra_module in extra_modules -%}
|
||||||
|
<script type="module" crossorigin="use-credentials" src="{{ extra_module }}"></script>
|
||||||
|
{% endfor -%}
|
||||||
|
|
||||||
|
|
||||||
<script nomodule>
|
<script nomodule>
|
||||||
(function() {
|
(function() {
|
||||||
@ -76,6 +80,9 @@
|
|||||||
_ls("<%= es5CoreJS %>");
|
_ls("<%= es5CoreJS %>");
|
||||||
_ls("<%= es5AppJS %>");
|
_ls("<%= es5AppJS %>");
|
||||||
_ls("<%= es5HassIconsJS %>");
|
_ls("<%= es5HassIconsJS %>");
|
||||||
|
{% for extra_script in extra_js_es5 -%}
|
||||||
|
_ls("{{ extra_script }}");
|
||||||
|
{% endfor -%}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user