From 8a18069994229896353bc85c9f661bda028ff562 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 22 Feb 2023 20:50:28 -0800 Subject: [PATCH] Prevent form submission on download --- index.html | 1 + 1 file changed, 1 insertion(+) 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 = `