diff options
author | Gael Pasgrimaud | 2011-06-25 10:15:32 +0200 |
---|---|---|
committer | Gael Pasgrimaud | 2011-06-25 10:15:32 +0200 |
commit | b5269a892b3a7dcb89c9c1913797b3d74ff1c476 (patch) | |
tree | b3e06d958238cd3c8f2cb0922e588c64c40e54a3 /commandBookmarklet.js | |
parent | 95f5752645a1948a3f3d29471fbb7eeb98a4ecaa (diff) | |
parent | d4e2c5327d707808086d3c1f020e884972698b21 (diff) | |
download | vimperator-plugins-b5269a892b3a7dcb89c9c1913797b3d74ff1c476.tar.bz2 |
Merge branch 'master' of git://github.com/vimpr/vimperator-plugins
Diffstat (limited to 'commandBookmarklet.js')
-rw-r--r-- | commandBookmarklet.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commandBookmarklet.js b/commandBookmarklet.js index 3375dce..811691c 100644 --- a/commandBookmarklet.js +++ b/commandBookmarklet.js @@ -75,8 +75,11 @@ if (!items.length) { } items.forEach(function (item) { + let name = toValidCommandName(item.title); + if (commands.get(name)) + return; commands.addUserCommand( - [toValidCommandName(item.title)], + [name], 'bookmarklet : ' + item.title, function () evalScript(item.url), { shortHelp: 'Bookmarklet' }, |