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

Move globalThis polyfill to compatibility, add more compatibility (#16386)

This commit is contained in:
Bram Kragten
2023-05-04 15:49:28 +02:00
committed by GitHub
parent 060f6ce3d8
commit 8695bbc490
8 changed files with 27 additions and 16 deletions

View File

@@ -41,9 +41,6 @@
<%= renderTemplate("_js_base.html.template") %>
<%= renderTemplate("_preload_roboto.html.template") %>
<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) {
<% for (const entry of latestEntryJS) { %>