mirror of
https://github.com/golang/go.git
synced 2025-10-25 05:53:20 +00:00
10 lines
255 B
JavaScript
10 lines
255 B
JavaScript
|
|
chrome.omnibox.onInputEntered.addListener(function(t) {
|
||
|
|
var url = urlForInput(t);
|
||
|
|
if (url) {
|
||
|
|
chrome.tabs.getSelected(null, function(tab) {
|
||
|
|
if (!tab) return;
|
||
|
|
chrome.tabs.update(tab.id, { "url": url, "selected": true });
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|