summaryrefslogtreecommitdiffstats
path: root/prog/ž/app.html
diff options
context:
space:
mode:
Diffstat (limited to 'prog/ž/app.html')
-rw-r--r--prog/ž/app.html4
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;