mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-08-03 09:48:08 -04:00
fix(web/js): broken progress bar with slow algo (#673)
This was revealed by the reformat in #546. Signed-off-by: Eric T. Johnson <yut23@users.noreply.github.com>
This commit is contained in:
parent
4c74934e9f
commit
060b10ea2d
@ -70,7 +70,7 @@ function processTask() {
|
||||
let hash;
|
||||
let nonce = 0;
|
||||
do {
|
||||
if (nonce & (1023 === 0)) {
|
||||
if ((nonce & 1023) === 0) {
|
||||
postMessage(nonce);
|
||||
}
|
||||
hash = await sha256(data + nonce++);
|
||||
|
Loading…
x
Reference in New Issue
Block a user