diff options
| author | Phil Crosby | 2012-06-10 01:37:03 -0700 |
|---|---|---|
| committer | Phil Crosby | 2012-06-10 01:41:45 -0700 |
| commit | 3bbca08833efc80d248fce1127044fa7135d293a (patch) | |
| tree | b9f84714d0b3f25cf38365a46e17474c2bc3f150 /background_page.html | |
| parent | 17441ec22e3ee1a607674b4b6b57b0bca433a841 (diff) | |
| download | vimium-3bbca08833efc80d248fce1127044fa7135d293a.tar.bz2 | |
Perform a google search if they hit enter with no selection.
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/background_page.html b/background_page.html index ccd06044..bae23acb 100644 --- a/background_page.html +++ b/background_page.html @@ -222,32 +222,27 @@ }; } - /** + /* * Opens the url in the current tab. */ function openUrlInCurrentTab(request) { chrome.tabs.getSelected(null, function(tab) { - chrome.tabs.update(tab.id, {url: request.url}); + chrome.tabs.update(tab.id, { url: utils.convertToUrl(request.url) }); }); } - /** + /* * Opens request.url in new tab and switches to it if request.selected is true. - * */ function openUrlInNewTab(request) { chrome.tabs.getSelected(null, function(tab) { - chrome.tabs.create({ url: request.url, index: tab.index + 1, selected: true }); + chrome.tabs.create({ url: utils.convertToUrl(request.url), index: tab.index + 1, selected: true }); }); } - function openCopiedUrlInCurrentTab(request) { - openUrlInCurrentTab({ url: utils.ensureUrl(Clipboard.paste()) }); - } + function openCopiedUrlInCurrentTab(request) { openUrlInCurrentTab({ url: Clipboard.paste() }); } - function openCopiedUrlInNewTab(request) { - openUrlInNewTab({ url: utils.ensureUrl(Clipboard.paste()) }); - } + function openCopiedUrlInNewTab(request) { openUrlInNewTab({ url: Clipboard.paste() }); } /* * Returns the user-provided CSS overrides. |
