mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-11-24 06:25:46 +00:00
fix: typecast BigInt to number in progress computation
closes: https://github.com/mCaptcha/mCaptcha/issues/134
This commit is contained in:
parent
3cd38511fa
commit
3cb0ca38ec
@ -94,7 +94,7 @@ export const solveCaptchaRunner = async (e: Event): Promise<void> => {
|
|||||||
}
|
}
|
||||||
if (resp.type === "progress") {
|
if (resp.type === "progress") {
|
||||||
if (width < 80) {
|
if (width < 80) {
|
||||||
width = (resp.nonce / max_recorded_nonce) * 100;
|
width = Number(resp.nonce / max_recorded_nonce) * 100;
|
||||||
setWidth(width);
|
setWidth(width);
|
||||||
}
|
}
|
||||||
console.log(`received nonce ${resp.nonce}`);
|
console.log(`received nonce ${resp.nonce}`);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user