fix: save portals after booting, but before executing the kernel
This commit is contained in:
parent
1329712573
commit
1f3cb20bd4
|
@ -1,6 +1,7 @@
|
|||
import {
|
||||
downloadSmallObject,
|
||||
maybeInitDefaultPortals,
|
||||
savePortals,
|
||||
setActivePortalMasterKey,
|
||||
} from "@lumeweb/libweb";
|
||||
import { log, logErr, sendAuthUpdate } from "./util.js";
|
||||
|
@ -65,6 +66,8 @@ export async function loadKernel() {
|
|||
return;
|
||||
}
|
||||
|
||||
savePortals();
|
||||
|
||||
try {
|
||||
await new Promise(async (resolve, reject) => {
|
||||
const url = URL.createObjectURL(await readableStreamToBlob(kernelCode));
|
||||
|
|
Loading…
Reference in New Issue