added copy on generate setting saving and use in Generate

This commit is contained in:
Danny Summerlin 2022-12-26 12:16:03 -05:00 committed by GitHub
parent be2b2f344e
commit 53f52be5fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ $(() => {
list: 'large',
count: 4,
symbol: true,
copy: false,
separator: defaultSymbol,
}
@ -61,6 +62,8 @@ $(() => {
$('#run-generator').click(() => {
const options = $options.serializeObject()
$output.text(generate(options)).removeClass('placeholder')
if(options.copy)
new Clipboard('#run-generator')
$('#copy-password').prop('disabled', false)
return false
})