[🔨] Fixing ts-standard errors I made earlier

This commit is contained in:
Parrot 2023-10-17 22:33:46 +00:00
parent cd7af32427
commit 73530afebd

View file

@ -19,9 +19,12 @@ window.fs = new (window as any).Filer.FileSystem()
const params = new URLSearchParams(window.location.search)
async function enableDebug() {
const { default: eruda } = await import("eruda")
async function enableDebug (): Promise<void> {
const { default: eruda } = await import('eruda')
eruda.init()
return await Promise.resolve()
}
if (params.get("debug")) enableDebug()
if (params.get('debug') !== null && params.get('debug') !== undefined) {
enableDebug().catch(e => console.error(e))
}