diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index a9394bc..b77ae99 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -17,8 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Determine the `BIND_NETWORK`/`--bind-network` value from the bind address ([#677](https://github.com/TecharoHQ/anubis/issues/677)). - Implement localization system. Find locale files in lib/localization/locales/. - Implement a [development container](https://containers.dev/) manifest to make contributions easier. -- Fix dynamic cookie domains functionality ([#731](https://github.com/TecharoHQ/anubis/pull/731)) -- Add option for custom cookie prefix ([#732](https://github.com/TecharoHQ/anubis/pull/732)) +- Fix dynamic cookie domains functionality ([#731](https://github.com/TecharoHQ/anubis/pull/731)). +- Add option for custom cookie prefix ([#732](https://github.com/TecharoHQ/anubis/pull/732)). +- Remove the "Success" interstitial after a proof of work challenge is concluded. ## v1.20.0: Thancred Waters diff --git a/web/js/main.mjs b/web/js/main.mjs index 0b1e69b..9d0f192 100644 --- a/web/js/main.mjs +++ b/web/js/main.mjs @@ -212,11 +212,6 @@ const t = (key) => translations[`js_${key}`] || translations[key] || key; const t1 = Date.now(); console.log({ hash, nonce }); - title.innerHTML = t('success'); - status.innerHTML = `${t('done_took')} ${t1 - t0}ms, ${nonce} ${t('iterations')}`; - image.src = imageURL("happy", anubisVersion, basePrefix); - progress.style.display = "none"; - if (userReadDetails) { const container = document.getElementById("progress"); @@ -251,17 +246,15 @@ const t = (key) => translations[`js_${key}`] || translations[key] || key; container.onclick = onDetailsExpand; setTimeout(onDetailsExpand, 30000); } else { - setTimeout(() => { - const redir = window.location.href; - window.location.replace( - u(`${basePrefix}/.within.website/x/cmd/anubis/api/pass-challenge`, { - response: hash, - nonce, - redir, - elapsedTime: t1 - t0, - }), - ); - }, 250); + const redir = window.location.href; + window.location.replace( + u(`${basePrefix}/.within.website/x/cmd/anubis/api/pass-challenge`, { + response: hash, + nonce, + redir, + elapsedTime: t1 - t0, + }), + ); } } catch (err) { ohNoes({