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();
|
var other = othervault();
|
||||||
if (confirm("Switch to " + other + "?"))
|
if (confirm("Switch to " + other + "?"))
|
||||||
{
|
{
|
||||||
|
clearInterval(workerid);
|
||||||
window.localStorage.setItem("vault", other);
|
window.localStorage.setItem("vault", other);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
@ -743,6 +744,7 @@ function init()
|
||||||
|
|
||||||
function togglepassword()
|
function togglepassword()
|
||||||
{
|
{
|
||||||
|
clearInterval(workerid);
|
||||||
password.value = "";
|
password.value = "";
|
||||||
authentpage.hidden = false;
|
authentpage.hidden = false;
|
||||||
notepage.style.display = "none";
|
notepage.style.display = "none";
|
||||||
|
|
Loading…
Reference in New Issue