Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Aug 2, 2019
1 parent a2c9b99 commit 1fba6c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/xe-clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
$elem.focus();
$elem.select();
$elem.setSelectionRange(0, $elem.value.length);
return doc.execCommand.apply(doc, 'copy', arguments);
return doc.execCommand.apply(doc, ['copy'].concat(arguments));
}
/**
* Copy the contents to the clipboard.
Expand Down
2 changes: 1 addition & 1 deletion dist/xe-clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function copyText () {
$elem.focus()
$elem.select()
$elem.setSelectionRange(0, $elem.value.length)
return doc.execCommand.apply(doc, 'copy', arguments)
return doc.execCommand.apply(doc, ['copy'].concat(arguments))
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xe-clipboard",
"version": "1.3.0",
"version": "1.4.0",
"description": "Copy the contents to the clipboard, support commonly used H5 browser IE, Chrome, Firefox, Opera, Safari, IOS, Android.",
"main": "index.js",
"unpkg": "dist/xe-clipboard.js",
Expand Down

0 comments on commit 1fba6c0

Please sign in to comment.