expose lk log level changing in window

This commit is contained in:
Timo
2025-03-04 15:22:30 +01:00
parent a3dc951f39
commit 80f3d41b2d
2 changed files with 3 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ declare global {
interface Window { interface Window {
controls: Controls; controls: Controls;
setLKLogLevel: unknown;
} }
interface HTMLElement { interface HTMLElement {

View File

@@ -24,6 +24,8 @@ import { App } from "./App";
import { init as initRageshake } from "./settings/rageshake"; import { init as initRageshake } from "./settings/rageshake";
import { Initializer } from "./initializer"; import { Initializer } from "./initializer";
window.setLKLogLevel = setLKLogLevel;
initRageshake().catch((e) => { initRageshake().catch((e) => {
logger.error("Failed to initialize rageshake", e); logger.error("Failed to initialize rageshake", e);
}); });