mirror of https://github.com/keeweb/keeweb.git
Fix copying hidden password
This commit is contained in:
parent
9c8ebde19d
commit
03f566e7cd
|
@ -131,11 +131,7 @@ const GeneratorView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
btnOkClick: function() {
|
||||
const selection = window.getSelection();
|
||||
const range = document.createRange();
|
||||
range.selectNodeContents(this.resultEl[0]);
|
||||
selection.removeAllRanges();
|
||||
selection.addRange(range);
|
||||
CopyPaste.createHiddenInput(this.password);
|
||||
CopyPaste.copy(this.password);
|
||||
this.trigger('result', this.password);
|
||||
this.remove();
|
||||
|
|
Loading…
Reference in New Issue