mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
Merge pull request #46 from kremalicious/greenkeeper/clipboard-2.0.0
Update clipboard to the latest version 🚀
This commit is contained in:
commit
69bace9942
@ -2,7 +2,7 @@
|
|||||||
// Vex modals
|
// Vex modals
|
||||||
//
|
//
|
||||||
|
|
||||||
/* global vex, fetch, Clipboard, QRious */
|
/* global vex, fetch, ClipboardJS, QRious */
|
||||||
/* exported krlcModals */
|
/* exported krlcModals */
|
||||||
|
|
||||||
/* eslint-disable spaced-comment */
|
/* eslint-disable spaced-comment */
|
||||||
@ -79,7 +79,7 @@ const krlcModals = (() => { // eslint-disable-line no-unused-vars
|
|||||||
qrEth.set(qrOptions)
|
qrEth.set(qrOptions)
|
||||||
|
|
||||||
// Clipboard button
|
// Clipboard button
|
||||||
const clipboard = new Clipboard('.btn')
|
const clipboard = new ClipboardJS('.btn')
|
||||||
|
|
||||||
clipboard.on('success', e => {
|
clipboard.on('success', e => {
|
||||||
e.trigger.classList.add('success')
|
e.trigger.classList.add('success')
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@webcomponents/webcomponentsjs": "^1.1.0",
|
"@webcomponents/webcomponentsjs": "^1.1.0",
|
||||||
"clipboard": "^1.7.1",
|
"clipboard": "^2.0.0",
|
||||||
"exif-js": "^2.3.0",
|
"exif-js": "^2.3.0",
|
||||||
"normalize-css": "^2.3.1",
|
"normalize-css": "^2.3.1",
|
||||||
"normalize-opentype.css": "^0.2.4",
|
"normalize-opentype.css": "^0.2.4",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user