fix: call savePortalSessions before kernel load

This commit is contained in:
Derrick Hammer 2023-10-19 17:12:24 -04:00
parent 760cade655
commit c5f7059161
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import {
downloadSmallObject,
maybeInitDefaultPortals,
savePortals,
savePortalSessions,
setActivePortalMasterKey,
} from "@lumeweb/libweb";
import { log, logErr, sendAuthUpdate } from "./util.js";
@ -67,6 +68,7 @@ export async function loadKernel() {
}
savePortals();
savePortalSessions();
try {
await new Promise(async (resolve, reject) => {