diff --git a/src/upd8.ts b/src/upd8.ts index 0b9a82a..68a0a5e 100644 --- a/src/upd8.ts +++ b/src/upd8.ts @@ -85,7 +85,7 @@ export const cre8 = ( export const errored = (error: string) => { for (const view of views.values()) { - view.errored(error); + view.internalError(error); } }; @@ -132,6 +132,11 @@ export class Upd8View { this.rootElement?.classList.remove("hidden"); } + internalError(message: string) { + this._upd8_lazyInit(); + this.errored(message); + } + errored(message: string) {} showing(state: State): boolean {