From b8d3eb76ac80f2a72b1431394558d2e5042bfce4 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 27 Jan 2022 18:57:15 +0100 Subject: [PATCH] Set frontendVersion sooner (#11460) --- src/entrypoints/app.ts | 2 -- src/entrypoints/core.ts | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/entrypoints/app.ts b/src/entrypoints/app.ts index 39c5f4c493..d4d1852c20 100644 --- a/src/entrypoints/app.ts +++ b/src/entrypoints/app.ts @@ -5,5 +5,3 @@ import "../resources/roboto"; import "../util/legacy-support"; setPassiveTouchGestures(true); - -(window as any).frontendVersion = __VERSION__; diff --git a/src/entrypoints/core.ts b/src/entrypoints/core.ts index 2875b3a8e4..2e34faae09 100644 --- a/src/entrypoints/core.ts +++ b/src/entrypoints/core.ts @@ -29,6 +29,7 @@ import { HomeAssistant } from "../types"; import { MAIN_WINDOW_NAME } from "../data/main_window"; window.name = MAIN_WINDOW_NAME; +(window as any).frontendVersion = __VERSION__; declare global { interface Window {