mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
17 lines
520 B
TypeScript
17 lines
520 B
TypeScript
import type { TemplateResult } from "lit";
|
|
import { render } from "lit";
|
|
|
|
export const removeLaunchScreen = () => {
|
|
const launchScreenElement = document.getElementById("ha-launch-screen");
|
|
if (launchScreenElement) {
|
|
launchScreenElement.parentElement!.removeChild(launchScreenElement);
|
|
}
|
|
};
|
|
|
|
export const renderLaunchScreenInfoBox = (content: TemplateResult) => {
|
|
const infoBoxElement = document.getElementById("ha-launch-screen-info-box");
|
|
if (infoBoxElement) {
|
|
render(content, infoBoxElement);
|
|
}
|
|
};
|