From: Ardis Lu Date: Thu, 23 Feb 2023 04:50:28 +0000 (-0800) Subject: Prevent form submission on download X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=8a18069994229896353bc85c9f661bda028ff562;p=static-encrypt Prevent form submission on download --- diff --git a/index.html b/index.html index 9179ff9..d784477 100644 --- a/index.html +++ b/index.html @@ -165,6 +165,7 @@ }); document.querySelector('#download').addEventListener('click', e => { + e.preventDefault(); const encrypted = document.querySelector('#ciphertext').textContent; const scriptInjection = `