diff --git a/pages/async_bg.ts b/pages/async_bg.ts index a25dfa39c..c5eeee368 100644 --- a/pages/async_bg.ts +++ b/pages/async_bg.ts @@ -259,7 +259,10 @@ export const import2 = (url: string): Promise => { return define([url]) // eslint-disable-line @typescript-eslint/no-unsafe-call } -export const fetch: (input: string, init?: Partial) => Promise = globalThis.fetch as any +export const fetch = (input: string, init?: Partial): Promise => { + const a = globalThis.fetch + return a(input as `/${string}`, init) +} if (!Build.NDEBUG) { (window as any).updateUI = (): void => { void post_(kPgReq.reloadCSS, null) } } //#endregion