From 53f52be5fd067f16174cae1d86e2607c389d8027 Mon Sep 17 00:00:00 2001 From: Danny Summerlin Date: Mon, 26 Dec 2022 12:16:03 -0500 Subject: [PATCH] added copy on generate setting saving and use in Generate --- src/ui.js | 3 +++ 1 file changed, 3 insertions(+) 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 })