From ac317c3d6a407e30387ec196525df6e62f498660 Mon Sep 17 00:00:00 2001 From: jamz-uk <222520099+jamz-uk@users.noreply.github.com> Date: Wed, 13 Aug 2025 19:34:55 +0100 Subject: [PATCH] Update Auto-Image.js --- Auto-Image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Auto-Image.js b/Auto-Image.js index 346bc0e..ef41dcb 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -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");