mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Update cowyo.js
Refactored document locking logic.
This commit is contained in:
parent
8c5c025dd1
commit
8999b9399d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user