File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ const cfg = {
8585} ;
8686
8787setConfig ( cfg ) ;
88- const bare = new BareClient ( ) ;
88+ export const bare = new BareClient ( ) ;
8989
9090type Controller = {
9191 controllerframe : HTMLIFrameElement ;
Original file line number Diff line number Diff line change 11import { browser } from "../Browser" ;
2+ import { bare } from "../IsolatedFrame" ;
23import { scramjet } from "../main" ;
34
45export type OmniboxResult = {
@@ -114,10 +115,8 @@ const fetchGoogleSuggestions = async (
114115 if ( ! query ) return [ ] ;
115116
116117 try {
117- const resp = await fetch (
118- scramjet . encodeUrl (
119- `http://suggestqueries.google.com/complete/search?client=chrome&q=${ encodeURIComponent ( query ) } `
120- )
118+ const resp = await bare . fetch (
119+ `http://suggestqueries.google.com/complete/search?client=chrome&q=${ encodeURIComponent ( query ) } `
121120 ) ;
122121
123122 const json = await resp . json ( ) ;
You can’t perform that action at this time.
0 commit comments