clear password on checkPassword

This commit is contained in:
Danny Coates 2019-02-20 11:51:09 -08:00
parent fd2b58d96d
commit 060b6835f1
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@ function password(state, emit) {
function checkPassword(event) {
event.stopPropagation();
event.preventDefault();
const password = document.getElementById('password-input').value;
const el = document.getElementById('password-input');
const password = el.value;
// clear the value to prevent the save password dialog
el.value = '';
if (password.length > 0) {
document.getElementById('password-btn').disabled = true;
state.fileInfo.url = window.location.href;