From 7f8153d805d9d997ea7a36bd36b533792a514bc8 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 23 Apr 2025 12:58:11 +0100 Subject: [PATCH] set instead of append url params to ensure no loops on invalid solution --- web/source/nollamas/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/source/nollamas/index.js b/web/source/nollamas/index.js index c330dcdc1..246376509 100644 --- a/web/source/nollamas/index.js +++ b/web/source/nollamas/index.js @@ -45,7 +45,7 @@ document.addEventListener('DOMContentLoaded', function() { if (e.data.done) { console.log('solution found for:', e.data.nonce); let url = new URL(window.location.href); - url.searchParams.append('nollamas_solution', e.data.nonce); + url.searchParams.set('nollamas_solution', e.data.nonce); window.location.href = url.toString(); } };