aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJez Ng2012-01-25 00:39:44 -0500
committerJez Ng2012-01-25 00:41:22 -0500
commitc84be39117fff367596f985fa99d5bd92e60b9a0 (patch)
treef4c23e0a0945756037f149ac5ded40dbcb4b5f09
parentccba059c287726002173a4d3ef16df6dfe52d06a (diff)
downloadvimium-c84be39117fff367596f985fa99d5bd92e60b9a0.tar.bz2
Open bookmarklets by setting window.location.
This fixes a regression caused by fb99302.
-rw-r--r--bookmarks.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/bookmarks.js b/bookmarks.js
index d91d54db..85d12aac 100644
--- a/bookmarks.js
+++ b/bookmarks.js
@@ -69,7 +69,9 @@ function activateBookmarkFindMode() {
var url = selection.url;
var isABookmarklet = function(url) { return url.indexOf("javascript:") === 0; }
- if (!self.newTab || isABookmarklet(url))
+ if (isABookmarklet(url))
+ window.location = url;
+ else if (!self.newTab)
chrome.extension.sendRequest({ handler: "openUrlInCurrentTab", url: url });
else
chrome.extension.sendRequest({ handler: "openUrlInNewTab", url: url });