diff --git a/theme/index.html b/theme/index.html index 488e452..f780301 100644 --- a/theme/index.html +++ b/theme/index.html @@ -33,7 +33,6 @@ diff --git a/theme/moth.js b/theme/moth.js index e9fff17..eb1742c 100644 --- a/theme/moth.js +++ b/theme/moth.js @@ -109,9 +109,6 @@ function renderState(obj) { renderPuzzles(obj.Puzzles) } else if (Object.keys(obj.Puzzles).length > 0) { renderPuzzles(obj.Puzzles) - if (obj.Config.Detachable) { - fetchAll(obj.Puzzles) - } } renderNotices(obj.Messages) } @@ -151,30 +148,6 @@ function showPuzzles() { document.getElementById("puzzles").appendChild(spinner) } -async function fetchAll(puzzles) { - let teamId = sessionStorage.id - - console.log("Caching all currently-open content") - - for (let cat in puzzles) { - for (let points of puzzles[cat]) { - let resp = await fetch(cat + "/" + points + "/") - if (! resp.ok) { - continue - } - let obj = await resp.json() - for (let file of obj.files) { - fetch(cat + "/" + points + "/" + file.name) - } - for (let file of obj.scripts) { - fetch(cat + "/" + points + "/" + file.name) - } - } - } - - console.log("Done caching content") -} - function login(e) { e.preventDefault() let name = document.querySelector("[name=name]").value diff --git a/theme/notices.html b/theme/notices.html deleted file mode 100644 index 7b76fa5..0000000 --- a/theme/notices.html +++ /dev/null @@ -1 +0,0 @@ -