diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-06-20 13:06:33 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-06-20 13:06:33 +0200 |
commit | 24ae5810a844e0099910cf70b1a18158f82891e3 (patch) | |
tree | d18cbe1f3e8279fb63fcf08cf4ce12c27bf7ba3a /prog/ž/app.html | |
parent | ž initial commit (diff) | |
download | r-24ae5810a844e0099910cf70b1a18158f82891e3.tar r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.gz r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.bz2 r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.lz r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.xz r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.zst r-24ae5810a844e0099910cf70b1a18158f82891e3.zip |
Diffstat (limited to 'prog/ž/app.html')
-rw-r--r-- | prog/ž/app.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/ž/app.html b/prog/ž/app.html index f5601e1..544db56 100644 --- a/prog/ž/app.html +++ b/prog/ž/app.html @@ -231,8 +231,8 @@ async function sync_transactions () { for (let i = 0; i < server_transactions.length/tx_len; i++) if (await try_import_tx(server_transactions.slice(tx_len*i, tx_len*i+tx_len))) count++; - window.lsh = a2hex(new Uint8Array(await crypto.subtle.digest("SHA-256", server_transactions.slice(-tx_len)))); - localStorage.setItem("last_sync_hash", lsh); + if (server_transactions.length) + localStorage.setItem("last_sync_hash", a2hex(new Uint8Array(await crypto.subtle.digest("SHA-256", server_transactions.slice(-tx_len))))); if (count) rendertxsbal(); return count; |