fixed: stop worker when needed
This commit is contained in:
parent
1f9a2d303c
commit
74fe532bee
2
main.js
2
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";
|
||||
|
|
Loading…
Reference in New Issue