From 57ae8ced4abe83e13fea0a4b654edb66b8089110 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 25 Jul 2023 11:49:14 -0400 Subject: [PATCH] refactor: on logout reset boot defer --- src/main/background/boot.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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(); + } }); }