mirror of
https://github.com/quantum5/correcthorsebatterystaple.git
synced 2025-04-24 10:11:57 -04:00
using full Clipboard call
This commit is contained in:
parent
53f52be5fd
commit
7637ee693c
|
@ -63,7 +63,9 @@ $(() => {
|
|||
const options = $options.serializeObject()
|
||||
$output.text(generate(options)).removeClass('placeholder')
|
||||
if(options.copy)
|
||||
new Clipboard('#run-generator')
|
||||
new Clipboard("#run-generator", {})
|
||||
.on('success', e => showTooltip($(e.trigger), 'Copied!'))
|
||||
.on('error', e => showTooltip($(e.trigger), 'Failed to copy!'))
|
||||
$('#copy-password').prop('disabled', false)
|
||||
return false
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue