File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const youURL = 'https://you.com/'
1313chrome . action . onClicked . addListener ( async ( ) => {
1414 const [ activeTab ] = await chrome . tabs . query ( { active : true , currentWindow : true } ) ,
1515 query = activeTab . url ? new URL ( activeTab . url ) . searchParams . get ( 'q' ) || 'hi' : 'hi'
16- chrome . tabs . update ( activeTab . id , { url : `${ youURL } /search?q=${ query } &tbm=youchat` } )
16+ chrome . tabs . create ( { url : `${ youURL } /search?q=${ query } &tbm=youchat` } )
1717} )
1818
1919// Suggest You.com on short prefix used
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const youURL = 'https://you.com/'
1313chrome . action . onClicked . addListener ( async ( ) => {
1414 const [ activeTab ] = await chrome . tabs . query ( { active : true , currentWindow : true } ) ,
1515 query = activeTab . url ? new URL ( activeTab . url ) . searchParams . get ( 'q' ) || 'hi' : 'hi'
16- chrome . tabs . update ( activeTab . id , { url : `${ youURL } /search?q=${ query } &tbm=youchat` } )
16+ chrome . tabs . create ( { url : `${ youURL } /search?q=${ query } &tbm=youchat` } )
1717} )
1818
1919// Suggest You.com on short prefix used
You can’t perform that action at this time.
0 commit comments