diff --git a/misc/chrome/gophertool/background.js b/misc/chrome/gophertool/background.js index d18faa986f..79ae05db4f 100644 --- a/misc/chrome/gophertool/background.js +++ b/misc/chrome/gophertool/background.js @@ -1,7 +1,7 @@ chrome.omnibox.onInputEntered.addListener(function(t) { var url = urlForInput(t); if (url) { - chrome.tabs.getSelected(null, function(tab) { + chrome.tabs.query({ "active": true, "currentWindow": true }, function(tab) { if (!tab) return; chrome.tabs.update(tab.id, { "url": url, "selected": true }); });