From cfb9d4f59fbebb43d1674627e50c0ff3383ea503 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 31 Dec 2022 22:12:42 -0500 Subject: [PATCH] aes.js: use alert box instead of window.alert for error --- scripts/aes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/aes.js b/scripts/aes.js index d2b83ce..903e859 100644 --- a/scripts/aes.js +++ b/scripts/aes.js @@ -129,7 +129,7 @@ async function decrypt() { ciphertext ); } catch (e) { - window.alert("Decryption error: incorrect password?"); + decPass.alertBox("alert-error", "Decryption error: incorrect password?"); } let dec = new TextDecoder();