From 2f37a69ba84c35e8a2613a6a517ed4ffc4cb2c8d Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 2 Jul 2020 02:44:16 +0200 Subject: [PATCH] Fix remaining colors --- assets/scripts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/scripts.js b/assets/scripts.js index 53efa0e..e98be5e 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -6,6 +6,8 @@ async function verifySignature(opts) { // Reset feedback elRes.innerHTML = ""; + elRes.classList.remove('green'); + elRes.classList.remove('red'); elResContent.innerHTML = ""; try { @@ -105,6 +107,8 @@ async function encryptMessage(opts) { // Reset feedback elRes.innerHTML = ""; + elRes.classList.remove('green'); + elRes.classList.remove('red'); try { // Get key data @@ -141,6 +145,8 @@ async function verifyProofs(opts) { // Reset feedback elRes.innerHTML = ""; + elRes.classList.remove('green'); + elRes.classList.remove('red'); try { // Get key data