Initial commit: Go 1.23 release state
This commit is contained in:
9
misc/chrome/gophertool/background.js
Normal file
9
misc/chrome/gophertool/background.js
Normal file
@@ -0,0 +1,9 @@
|
||||
chrome.omnibox.onInputEntered.addListener(function(t) {
|
||||
var url = urlForInput(t);
|
||||
if (url) {
|
||||
chrome.tabs.query({ "active": true, "currentWindow": true }, function(tab) {
|
||||
if (!tab) return;
|
||||
chrome.tabs.update(tab.id, { "url": url, "selected": true });
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user