Remove updateelem calls to hide some unnecessary messages in frontend scripts

Update spacing of some elements on bot check page
This commit is contained in:
Thomas Lynch
2024-08-15 22:50:29 +10:00
parent ba62d322a4
commit c29a14ffd8
2 changed files with 8 additions and 8 deletions

View File

@@ -126,9 +126,9 @@ const powFinished = new Promise((resolve) => {
finished = true;
const hasCaptcha = document.getElementById("captcha");
if (hasCaptcha) {
updateElem(".powstatus", __("Waiting for captcha."), "#31cc31");
// updateElem(".powstatus", __("Waiting for captcha."), "#31cc31");
} else {
updateElem(".powstatus", __("Submitting..."), "#31cc31");
// updateElem(".powstatus", __("Submitting..."), "#31cc31");
makeLoaderGreen();
}
workers.forEach((w) => w.terminate());
@@ -211,10 +211,10 @@ const powFinished = new Promise((resolve) => {
Math.floor(requiredSec - elapsedSec),
); //dont show negative time
console.log(`${hps}H/s, ≈${remainingSec}s remaining`);
return updateElem(
".powstatus",
__('Working, ≈%ss remaining', remainingSec),
);
// return updateElem(
// ".powstatus",
// __('Working, ≈%ss remaining', remainingSec),
// );
}
if (finished) return;
const [workerId, answer] = e.data;