From 166d8d578b216e0c8b9297e397b368661815ae3d Mon Sep 17 00:00:00 2001 From: rice-cracker-dev Date: Wed, 13 Aug 2025 03:19:43 +0700 Subject: [PATCH] fix script not loading on firefox --- src/main.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 65bdb1b..933d0f3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,10 +1,15 @@ /// // @ts-nocheck -import { bootstrapApp } from './app'; +import { bootstrapApp } from "./app"; (function () { - 'use strict'; - bootstrapApp().catch(e => console.error('Overlay Pro bootstrap failed', e)); + "use strict"; + window.onload = () => { + bootstrapApp().catch((e) => + console.error("Overlay Pro bootstrap failed", e), + ); + }; })(); -export {}; \ No newline at end of file +export {}; +