Skip to content

Commit

Permalink
add file cache bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerIn-wonderland committed Sep 6, 2023
1 parent a70c65b commit 0146a02
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/oobe/OobeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,17 @@ class OobeView {
>
Normal User (disable v86) ~100MB
</button>
<br />
<button
on:click={() => {
anura.settings.set("x86-disabled", true);
anura.settings.set("use-sw-cache", false);
this.nextStep();
}}
>
Bypass File Cache (disable v86, and disable offline
functionality) ~instant
</button>
</div>
),
on: () => {},
Expand All @@ -166,8 +177,7 @@ class OobeView {
if (!anura.settings.get("x86-disabled")) {
await installx86();
}

await preloadFiles();
if (anura.settings.get("use-sw-cache")) await preloadFiles();
console.log("Cached important files");
// Register default filehandlers
anura.files.set("/apps/libfileview.app/fileHandler.js", "txt");
Expand Down

0 comments on commit 0146a02

Please sign in to comment.