diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-03-18 19:53:29 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-03-18 19:53:29 +0300 |
| commit | b7f476568bd6dd85a0e43591386a7d101357630b (patch) | |
| tree | c3de339a813f2ee82657dc69e95a8ad96c5d9486 /web/html/common/qrcode_modal.html | |
| parent | 40c2f5206bf443bb2746ec6e7bd2264cb1da5038 (diff) | |
bug fixedv1.1.0
Diffstat (limited to 'web/html/common/qrcode_modal.html')
| -rw-r--r-- | web/html/common/qrcode_modal.html | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 6c9afbb3..e535b401 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -32,15 +32,13 @@ } this.visible = true; qrModalApp.$nextTick(() => { - if (this.clipboard === null) { - this.clipboard = new ClipboardJS('#qr-modal-ok-btn', { - text: () => this.copyText, - }); - this.clipboard.on('success', () => { - app.$message.success('{{ i18n "copied" }}') - this.clipboard.destroy(); - }); - } + this.clipboard = new ClipboardJS('#qr-modal-ok-btn', { + text: () => this.copyText, + }); + this.clipboard.on('success', () => { + app.$message.success('{{ i18n "copied" }}') + this.clipboard.destroy(); + }); if (this.qrcode === null) { this.qrcode = new QRious({ element: document.querySelector('#qrCode'), |
