diff --git a/contrib/ui/mesh-ui/ui/index.html b/contrib/ui/mesh-ui/ui/index.html index 1da3059b..1cc6d5c7 100755 --- a/contrib/ui/mesh-ui/ui/index.html +++ b/contrib/ui/mesh-ui/ui/index.html @@ -237,13 +237,13 @@ } function togglePrivKeyVisibility() { - if (this.classList.contains("fa-eye-slash")) { - this.classList.remove("fa-eye-slash"); - this.classList.add("fa-eye"); - document.getElementById("priv_key_visible").innerHTML = document.getElementById("priv_key").innerHTML; - } else { + if (this.classList.contains("fa-eye")) { this.classList.remove("fa-eye"); this.classList.add("fa-eye-slash"); + document.getElementById("priv_key_visible").innerHTML = document.getElementById("priv_key").innerHTML; + } else { + this.classList.remove("fa-eye-slash"); + this.classList.add("fa-eye"); document.getElementById("priv_key_visible").innerHTML = "••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••"; } } @@ -459,7 +459,7 @@
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- +