Update Auto-Image.js

This commit is contained in:
jamz-uk authored and GitHub committed 2025-08-13 19:34:55 +01:00
1 parent 4a9626eace
commit ac317c3d6a
1 file changed
+2 -1
+2 -1
View File
@@ -1524,7 +1524,8 @@ async function autoRefreshSequence() {
const success = await sendPixelBatch(pixelBatch, regionX, regionY);
if (success === "token_error") {
if (state.autoRefresh) {
// Only auto-refresh if enabled and more than 1 charge available
if (state.autoRefresh && state.currentCharges > 1) {
// CAPTCHA expired: keep trying refresh and retry until token works
updateUI("captchaNeeded", "error");
Utils.showAlert(Utils.t("captchaNeeded"), "error");