17 lines
595 B
TypeScript
17 lines
595 B
TypeScript
// file: crates/ksp-app-config-desk/frontend/ts/main.ts
|
|
// version: 1
|
|
|
|
import "bootstrap";
|
|
import ResizeObserver from "resize-observer-polyfill";
|
|
import "simplebar";
|
|
import { getCurrentWindow } from "@tauri-apps/api/window";
|
|
|
|
(window as Window & typeof globalThis & { ResizeObserver?: typeof ResizeObserver }).ResizeObserver = ResizeObserver;
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
const status = document.querySelector<HTMLElement>("#shellStatus");
|
|
if (status) {
|
|
status.textContent = `Frontend chargé dans la fenêtre '${getCurrentWindow().label}'.`;
|
|
}
|
|
});
|