Added SHA verification

This commit is contained in:
MeowcaTheoRange 2022-09-15 10:36:03 -05:00
parent 0298021107
commit 6b6c5eaa5a
2 changed files with 2 additions and 0 deletions

View file

@ -46,6 +46,7 @@
<div class="dialog" id="updatedialog">
<p class="dlg-top">There's an update!</p>
<p>You should restart - there's a new update of FunnyClock².</p>
<small id="updatesha">There should be an SHA here</small>
<br />
<div>
<button onclick="location.reload(true)">RELOAD</button>

View file

@ -14,6 +14,7 @@ function reqData() {
// }
if (resp != prevSha) {
document.querySelector("#updatesha").innerHTML = `from ${prevSha} to ${resp}`;
if (prevSha == "ThisShouldntBeASHA") {
localStorage.setItem("commitsha", resp);
} else {