aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--copy.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/copy.js b/copy.js
index cfd9176..e42910c 100644
--- a/copy.js
+++ b/copy.js
@@ -80,7 +80,7 @@ liberator.globalVariables.copy_templates.forEach(function(template){
//const defaultValue = templates[0].label;
commands.addUserCommand(['copy'],'Copy to clipboard',
function(args, special){
- liberator.plugins.exCopy.copy(args, special);
+ liberator.plugins.exCopy.copy(args.string, special);
},{
completer: function(filter, special){
if (special){
@@ -143,8 +143,7 @@ var exCopyManager = {
get: function(label){
return getCopyTemplate(label);
},
- copy: function(args, special){
- var arg = args.string == undefined ? args: args.string;
+ copy: function(arg, special){
var copyString = '';
var isError = false;
if (special && arg){