1
0
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:
Corbin 2021-05-01 16:04:50 -08:00 committed by GitHub
parent 8c5c025dd1
commit 8999b9399d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,9 +272,7 @@ $(window).load(function() {
e.preventDefault(); e.preventDefault();
var passphrase; var passphrase;
if ($('#lockPage').text() == "Lock") if ($('#lockPage').text() != "Lock")
passphrase = prompt("Please enter a passphrase to lock", "");
else
passphrase = prompt("Please enter a passphrase to unlock", ""); passphrase = prompt("Please enter a passphrase to unlock", "");
if (passphrase != null) { if (passphrase != null) {