Fix copying hidden password

This commit is contained in:
Grant Moyer 2019-08-06 20:07:55 -04:00
parent 9c8ebde19d
commit 03f566e7cd
1 changed files with 1 additions and 5 deletions

View File

@ -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();