aboutsummaryrefslogtreecommitdiffstats
path: root/commandBookmarklet.js
diff options
context:
space:
mode:
Diffstat (limited to 'commandBookmarklet.js')
-rw-r--r--commandBookmarklet.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/commandBookmarklet.js b/commandBookmarklet.js
index 9a37c97..c0d552a 100644
--- a/commandBookmarklet.js
+++ b/commandBookmarklet.js
@@ -27,8 +27,7 @@
}
title = liberator.util.escapeHTML(title);
- url = liberator.util.escapeHTML(url);
- var command = new Function("", 'liberator.open("' + url + '");');
+ var command = function () { liberator.open(url); };
liberator.commands.addUserCommand(
[title],
"bookmarklet",