From 74fe532beeb5b47d6c59d558965a60246f56510b Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Sun, 22 Jan 2023 21:20:19 +0100 Subject: [PATCH] fixed: stop worker when needed --- main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.js b/main.js index f308f28..f05fb49 100644 --- a/main.js +++ b/main.js @@ -279,6 +279,7 @@ function switchvault() var other = othervault(); if (confirm("Switch to " + other + "?")) { + clearInterval(workerid); window.localStorage.setItem("vault", other); init(); } @@ -743,6 +744,7 @@ function init() function togglepassword() { + clearInterval(workerid); password.value = ""; authentpage.hidden = false; notepage.style.display = "none";