fix: call savePortalSessions before kernel load
This commit is contained in:
parent
760cade655
commit
c5f7059161
|
@ -2,6 +2,7 @@ import {
|
||||||
downloadSmallObject,
|
downloadSmallObject,
|
||||||
maybeInitDefaultPortals,
|
maybeInitDefaultPortals,
|
||||||
savePortals,
|
savePortals,
|
||||||
|
savePortalSessions,
|
||||||
setActivePortalMasterKey,
|
setActivePortalMasterKey,
|
||||||
} from "@lumeweb/libweb";
|
} from "@lumeweb/libweb";
|
||||||
import { log, logErr, sendAuthUpdate } from "./util.js";
|
import { log, logErr, sendAuthUpdate } from "./util.js";
|
||||||
|
@ -67,6 +68,7 @@ export async function loadKernel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
savePortals();
|
savePortals();
|
||||||
|
savePortalSessions();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await new Promise(async (resolve, reject) => {
|
await new Promise(async (resolve, reject) => {
|
||||||
|
|
Loading…
Reference in New Issue