paivana

HTTP paywall reverse proxy
Log | Files | Refs | Submodules | README | LICENSE

commit ace782b48b4cf0b28f95647f74241854ed26e7cf
parent f54b8c1e0e5855eaf4250dc1437ac6e8932993dd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  4 Aug 2026 17:01:21 +0200

end on error, do not continue with redirect

Diffstat:
Msrc/frontend/paywall.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/frontend/paywall.js b/src/frontend/paywall.js @@ -135,6 +135,7 @@ async function confirmPayment(order_id, linkEl, errorEl, nonce) { if (res.status >= 400) { linkEl.textContent = I18N_PAYMENT_CONFIRMED_PROBLEM; errorEl.textContent = JSON.stringify(await res.json()); + return; } const dest = res.redirected ? res.url : website; location.href = dest;