Fix export and username prompt

pull/1/head
yflory 5 years ago
parent 366e45cac4
commit 32891be320

@ -461,7 +461,7 @@ define([
opt = opt || {}; opt = opt || {};
var inputBlock = opt.password ? UI.passwordInput() : dialog.textInput(); var inputBlock = opt.password ? UI.passwordInput() : dialog.textInput();
var input = opt.password ? $(inputBlock).find('input')[0] : inputBlock; var input = $(inputBlock).is('input') ? inputBlock : $(inputBlock).find('input')[0];
input.value = typeof(def) === 'string'? def: ''; input.value = typeof(def) === 'string'? def: '';
var message; var message;

Loading…
Cancel
Save