aboutsummaryrefslogtreecommitdiffstats
path: root/lookupDictionary.js
diff options
context:
space:
mode:
Diffstat (limited to 'lookupDictionary.js')
-rw-r--r--lookupDictionary.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lookupDictionary.js b/lookupDictionary.js
index f52b751..c0ba49c 100644
--- a/lookupDictionary.js
+++ b/lookupDictionary.js
@@ -141,7 +141,9 @@ SITE_DEFINITION.forEach(function(dictionary){
commands.addUserCommand(
dictionary.names,
dictionary.shortHelp,
- function(arg,special){
+ function(args,special){
+ var arg = args.string;
+
var sel = (window.content.window.getSelection) ?
window.content.window.getSelection().toString() : null;
if (special && sel) arg = sel;