Update Auto-Image.js

This commit is contained in:
jamz-uk authored and GitHub committed 2025-08-13 21:12:42 +01:00
1 parent 8ae2f375c9
commit 3494ebb7f8
1 file changed
+12 -4
+12 -4
View File
@@ -1520,10 +1520,18 @@
const success = await sendPixelBatch(pixelBatch, regionX, regionY);
if (success === "token_error") {
state.stopFlag = true;
updateUI("captchaNeeded", "error");
Utils.showAlert(Utils.t("captchaNeeded"), "error");
break outerLoop;
// CAPTCHA expired
if (state.autoRefresh) {
updateUI("captchaNeeded", "error");
// perform auto refresh and retry
await autoRefreshSequence();
continue outerLoop;
} else {
state.stopFlag = true;
updateUI("captchaNeeded", "error");
Utils.showAlert(Utils.t("captchaNeeded"), "error");
break outerLoop;
}
}
if (success) {