// file: crates/ksp-app-config-desk/frontend/ts/main.ts // version: 2 import "bootstrap"; import ResizeObserver from "resize-observer-polyfill"; import "simplebar"; import { getCurrentWindow } from "@tauri-apps/api/window"; import { frontendInfo, installFrontendConsoleBridge } from "./frontend_log"; (window as Window & typeof globalThis & { ResizeObserver?: typeof ResizeObserver }).ResizeObserver = ResizeObserver; installFrontendConsoleBridge("main"); document.addEventListener("DOMContentLoaded", () => { const windowLabel = getCurrentWindow().label; const status = document.querySelector("#shellStatus"); if (status) { status.textContent = `Frontend chargĂ© dans la fenĂȘtre '${windowLabel}'.`; } frontendInfo("main", "Config Desk main frontend loaded", { windowLabel }); });