Skip to content

Commit

Permalink
2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Mar 5, 2020
1 parent e430d05 commit fddd2aa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipboard",
"version": "2.0.5",
"version": "2.0.6",
"description": "Modern copy to clipboard. No Flash. Just 3kb",
"license": "MIT",
"main": "dist/clipboard.js",
Expand Down
6 changes: 3 additions & 3 deletions dist/clipboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* clipboard.js v2.0.5
* clipboard.js v2.0.6
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
Expand Down Expand Up @@ -936,10 +936,10 @@ var clipboard_Clipboard = function (_Emitter) {
var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];

var actions = typeof action === 'string' ? [action] : action;
var support = !document.queryCommandSupported;
var support = !!document.queryCommandSupported;

actions.forEach(function (action) {
support = support && !document.queryCommandSupported(action);
support = support && !!document.queryCommandSupported(action);
});

return support;
Expand Down
Loading

0 comments on commit fddd2aa

Please sign in to comment.