refactor: on logout reset boot defer

This commit is contained in:
Derrick Hammer 2023-07-25 11:49:14 -04:00
parent 1d7be971df
commit 57ae8ced4a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 10 additions and 1 deletions

View File

@ -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();
}
});
}