From bf022dbae8583482d86deec63f0f413e01f8d593 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 2 Apr 2024 12:22:09 +0200 Subject: no async script load and optional logger --- client-web/source/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client-web/source/index.ts') diff --git a/client-web/source/index.ts b/client-web/source/index.ts index 4be573f..73572cb 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -18,7 +18,7 @@ import { init_locale } from "./locale/mod.ts"; import { PO } from "./locale/mod.ts"; export const VERSION = "1.0.4" -globalThis.onload = () => main() +globalThis.addEventListener("DOMContentLoaded", () => main()) export interface ClientConfig { appearance?: { -- cgit v1.2.3-70-g09d2