refactor: on logout reset boot defer
This commit is contained in:
parent
1d7be971df
commit
57ae8ced4a
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue