mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +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 %>";
|
||||
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user