Skip to content

Commit db636ea

Browse files
committed
new root opfs
1 parent 47b6fdd commit db636ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/anura-sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ addEventListener("message", async (event) => {
356356
}
357357
if (event.data.anura_target === "anura.bootFromOPFS") {
358358
if (event.data.value) {
359-
opfs = await LocalFS.newSwOPFS();
359+
opfs = await LocalFS.newRootOPFS();
360360
globalThis.anura = { fs: opfs }; // Stupid thing for AFSShell compat
361361
opfssh = new AFSShell();
362362
} else {

src/Boot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ window.addEventListener("load", async () => {
104104
let bootStrapFs = Filer.fs;
105105

106106
if (await (window as any).idbKeyval.get("bootFromOPFS")) {
107-
bootStrapFs = (await LocalFS.newSwOPFS()) as any;
107+
bootStrapFs = (await LocalFS.newRootOPFS()) as any;
108108
}
109109
try {
110110
conf = await (await fetch("/config.json")).json();

0 commit comments

Comments
 (0)