Skip to content

Commit

Permalink
Changes global variable from "Clipboard" to "ClipboardJS"
Browse files Browse the repository at this point in the history
This was introduced in order to prevent a name conflict with the new `window.Clipboard` native function

For more info check:
* https://w3c.github.io/clipboard-apis/
* https://chromium.googlesource.com/chromium/src/+/ac319a7ed300e2d8b7de3e6dcdfce2acf3363122
  • Loading branch information
zenorocha committed Mar 1, 2018
1 parent d25dcac commit 750cf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
output: {
filename: production ? 'clipboard.min.js' : 'clipboard.js',
path: path.resolve(__dirname, 'dist'),
library: 'Clipboard',
library: 'ClipboardJS',
libraryTarget: 'umd'
},
module: {
Expand Down

0 comments on commit 750cf12

Please sign in to comment.