Sign in
go
/
go
/
5505e8ccc74e8e4cbacace0143730a309b1a7655
/
.
/
misc
/
chrome
/
gophertool
/
background.js
blob: d18faa986ff53de6fef1702721f01ce61c039436 [
file
] [
log
] [
blame
]
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
});
});
}
});