mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Fix the removed return from commenting out updateElem, undoes unnecessary buggy check from previous commit
This commit is contained in:
@ -210,7 +210,7 @@ const powFinished = new Promise((resolve) => {
|
|||||||
0,
|
0,
|
||||||
Math.floor(requiredSec - elapsedSec),
|
Math.floor(requiredSec - elapsedSec),
|
||||||
); //dont show negative time
|
); //dont show negative time
|
||||||
console.log(`${hps}H/s, ≈${remainingSec}s remaining`);
|
return console.log(`${hps}H/s, ≈${remainingSec}s remaining`);
|
||||||
// return updateElem(
|
// return updateElem(
|
||||||
// ".powstatus",
|
// ".powstatus",
|
||||||
// __('Working, ≈%ss remaining', remainingSec),
|
// __('Working, ≈%ss remaining', remainingSec),
|
||||||
@ -218,9 +218,6 @@ const powFinished = new Promise((resolve) => {
|
|||||||
}
|
}
|
||||||
if (finished) return;
|
if (finished) return;
|
||||||
const [workerId, answer] = e.data;
|
const [workerId, answer] = e.data;
|
||||||
if (!answer) {
|
|
||||||
return console.warn("Worker", workerId, "Returned with undefined answer");
|
|
||||||
}
|
|
||||||
console.log(
|
console.log(
|
||||||
"Worker",
|
"Worker",
|
||||||
workerId,
|
workerId,
|
||||||
|
2
src/js/challenge.min.js
vendored
2
src/js/challenge.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user