aboutsummaryrefslogtreecommitdiffstats
path: root/commandBookmarklet.js
diff options
context:
space:
mode:
Diffstat (limited to 'commandBookmarklet.js')
-rw-r--r--commandBookmarklet.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/commandBookmarklet.js b/commandBookmarklet.js
index 5ebb48a..e6fbbea 100644
--- a/commandBookmarklet.js
+++ b/commandBookmarklet.js
@@ -67,7 +67,8 @@ if (!items.length) {
return;
}
-for (let item in util.Array.iterator(items)) {
+for (let it in util.Array.iterator(items)) {
+ let item = it;
commands.addUserCommand(
[toValidCommandName(item.title)],
'bookmarklet : ' + item.title,