Files
khadhroony-solana-project/crates/ksp-app-config-desk/frontend/ts/main.ts
2026-08-16 12:21:28 +02:00

21 lines
826 B
TypeScript

// 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<HTMLElement>("#shellStatus");
if (status) {
status.textContent = `Frontend chargé dans la fenêtre '${windowLabel}'.`;
}
frontendInfo("main", "Config Desk main frontend loaded", { windowLabel });
});