[🔨] Fixing ts-standard errors I made earlier
This commit is contained in:
parent
cd7af32427
commit
73530afebd
1 changed files with 6 additions and 3 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue