diff --git a/src/ui.js b/src/ui.js index d9fe3a0..6b791e5 100644 --- a/src/ui.js +++ b/src/ui.js @@ -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 })