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
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ function processTask() {
|
||||||
let hash;
|
let hash;
|
||||||
let nonce = 0;
|
let nonce = 0;
|
||||||
do {
|
do {
|
||||||
if (nonce & (1023 === 0)) {
|
if ((nonce & 1023) === 0) {
|
||||||
postMessage(nonce);
|
postMessage(nonce);
|
||||||
}
|
}
|
||||||
hash = await sha256(data + nonce++);
|
hash = await sha256(data + nonce++);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue