1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-19 00:12:51 +01:00

Fix ES5 build and fix polyfill of Intl.Locale (#15322)

This commit is contained in:
Bram Kragten
2023-02-02 20:20:23 +01:00
committed by GitHub
parent 47b5ff7839
commit f0d53aab7b
12 changed files with 105 additions and 84 deletions

View File

@@ -43,6 +43,9 @@
<%= renderTemplate('_preload_roboto') %>
<script crossorigin="use-credentials">
if (!window.globalThis) {
window.globalThis = window;
}
// Safari 12 and below does not have a compliant ES2015 implementation of template literals, so we ship ES5
if (!isS11_12) {
import("<%= latestPageJS %>");
@@ -50,9 +53,6 @@
window.providersPromise = fetch("/auth/providers", {
credentials: "same-origin",
});
if (!window.globalThis) {
window.globalThis = window;
}
}
</script>