mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
Prevent saving empty key
This commit is contained in:
parent
5e2a9e2ac0
commit
c4630fff8a
@ -449,7 +449,8 @@ $(function() {
|
||||
function saveKey() {
|
||||
$('.edit-key').hide();
|
||||
$('.read-key').show();
|
||||
updateKeyVal($('.edit-key input.key').val());
|
||||
var key = $('.edit-key input.key').val().trim();
|
||||
updateKeyVal(key || encryptionKey);
|
||||
}
|
||||
|
||||
$('#join-modal .modal-footer button').click(function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user