diff --git a/static/js/cowyo.js b/static/js/cowyo.js index ece8954..eb25f2d 100644 --- a/static/js/cowyo.js +++ b/static/js/cowyo.js @@ -272,9 +272,7 @@ $(window).load(function() { e.preventDefault(); var passphrase; - if ($('#lockPage').text() == "Lock") - passphrase = prompt("Please enter a passphrase to lock", ""); - else + if ($('#lockPage').text() != "Lock") passphrase = prompt("Please enter a passphrase to unlock", ""); if (passphrase != null) {