diff --git a/src/main/background/boot.ts b/src/main/background/boot.ts index cc50619..3c6e4c3 100644 --- a/src/main/background/boot.ts +++ b/src/main/background/boot.ts @@ -6,7 +6,13 @@ import WebEngine from "../../webEngine.js"; import InternalProvider from "../../contentProviders/internalProvider.js"; import IpfsProvider from "../../contentProviders/ipfsProvider.js"; import ServerProvider from "../../contentProviders/serverProvider.js"; -import { events, getKernelIframe, setKernelIframe } from "../../vars.js"; +import { + events, + getKernelIframe, + resetBooted, + setKernelIframe, + weAreBooted, +} from "../../vars.js"; import { init } from "@lumeweb/libkernel/kernel"; import { dnsClient, @@ -38,6 +44,9 @@ export async function boot() { if (changes.loginComplete) { await doInit(); } + if (changes.logoutComplete) { + resetBooted(); + } }); }