Skip to content

Commit

Permalink
Fix autoupdate check on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal committed Jun 23, 2024
1 parent 4d398ab commit c68daf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ <h2>Moni <i>n</i>-taa</h2>
<a href="https://github.com/Dentosal/nback-web/" target="_blank">Lähdekoodi on tarjolla GitHubissa.</a>
Viimeisimmät muutokset:
<ul>
<li>Lisätty automaattinen päivitysten tarkastus</li>
<li>Korjattu multitouch-tuki ja ulkoasu mobiililaitteilla</li>
<li>Lisätty dataa historia- ja suoritusnäkymiin</li>
<li>Tallennetaan viive ennen painallusta</li>
<li>Lisätty zoomer-ystävällinen aktiivisuusvinouma-asetus</li>
</ul>
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion update.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const fetchLatestVersion = async () => {
};

let update_throttle = 1000 * 60; // At most once per minute
let update_last = performance.now();
let update_last = -update_throttle; // So this runs once on startup

const checkForUpdates = async () => {
let elem = document.querySelector("#update");
Expand Down

0 comments on commit c68daf4

Please sign in to comment.