Set frontendVersion sooner (#11460)

This commit is contained in:
Bram Kragten 2022-01-27 18:57:15 +01:00 committed by GitHub
parent ba75c2e7af
commit b8d3eb76ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -5,5 +5,3 @@ import "../resources/roboto";
import "../util/legacy-support";
setPassiveTouchGestures(true);
(window as any).frontendVersion = __VERSION__;

View File

@ -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 {