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