From e28b8241efe476be8367ee2e568c8b112d605261 Mon Sep 17 00:00:00 2001 From: Marsell Kukuljevic Date: Fri, 16 Jan 2026 10:55:16 +0000 Subject: [PATCH] Work around some (usually helpful) Firefox behaviour when creating multiple secrets. --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 9044f29..9c02b19 100644 --- a/index.html +++ b/index.html @@ -113,7 +113,7 @@ @@ -164,6 +164,13 @@ if (window.location.hash.includes("id=")) initDecryption(); }; + // This is a workaround for Firefox trying to be helpful. Most + // browsers clear content on reload, but Firefox does not. + async function reload() { + document.getElementById("text").value = ""; + window.location.reload(); + } + async function burnIt() { const text = document.getElementById("text").value; if (!text) return;