From 17441ec22e3ee1a607674b4b6b57b0bca433a841 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Sun, 10 Jun 2012 00:54:32 -0700 Subject: Show results immediately when you hit Shift+O (vomnibar with current URL). --- content_scripts/vomnibar.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/content_scripts/vomnibar.js b/content_scripts/vomnibar.js index 93fd79da..f0460ffa 100644 --- a/content_scripts/vomnibar.js +++ b/content_scripts/vomnibar.js @@ -18,10 +18,11 @@ var vomnibar = (function() { completer.refresh(); vomnibarUI.setCompleter(completer); vomnibarUI.setRefreshInterval(refreshInterval); - if (initialQueryValue) - vomnibarUI.setQuery(initialQueryValue); vomnibarUI.show(); - return vomnibarUI; + if (initialQueryValue) { + vomnibarUI.setQuery(initialQueryValue); + vomnibarUI.update(); + } } /** User interface for fuzzy completion */ @@ -196,7 +197,7 @@ var vomnibar = (function() { if (msg.id != id) return; // The result objects coming from the background page will be of the form: // { html: "", type: "", url: "" } - // type will be one of [tab, bookmark, history]. + // type will be one of [tab, bookmark, history, domain]. var results = msg.results.map(function(result) { var functionToCall; if (result.type == "tab") -- cgit v1.2.3