Skip to content

Commit

Permalink
remove issue that would cause anura to recache on first reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Feb 29, 2024
1 parent 31d3206 commit c3bd906
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion config.default.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"milestone": 2,
"apps": [
"apps/term.app",
"apps/glxgears.app",
Expand Down
7 changes: 1 addition & 6 deletions src/Boot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ window.addEventListener("load", async () => {
try {
conf = await (await fetch("/config.json")).json();
milestone = await (await fetch("/MILESTONE")).text();
instancemilestone = conf.milestone;

console.log("writing config??");
Filer.fs.writeFile("/config_cached.json", JSON.stringify(conf));
Expand All @@ -54,12 +53,8 @@ window.addEventListener("load", async () => {
if (milestone) {
const stored = anura.settings.get("milestone");
if (!stored) await anura.settings.set("milestone", milestone);
else if (
stored != milestone ||
anura.settings.get("instancemilestone") != instancemilestone
) {
else if (stored != milestone) {
await anura.settings.set("milestone", milestone);
await anura.settings.set("instancemilestone", instancemilestone);
if (anura.settings.get("use-sw-cache")) {
const tracker = document.getElementById("systemstatus")!;
const tracker_br = document.getElementById("systemstatus-br")!;
Expand Down

0 comments on commit c3bd906

Please sign in to comment.