Sign in
go
/
go
/
7cbfa55b5d17c8deaecff05e4221f828467cfa97
/
.
/
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
});
});
}
});