mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-03 09:35:05 +00:00
chore(Innertube#getSearchSuggestions): Use fetch_function instead of fetch
It is not an InnerTube request.
This commit is contained in:
@@ -225,6 +225,7 @@ export default class Session extends EventEmitter {
|
||||
public api_version: string;
|
||||
public account_index: number;
|
||||
public po_token?: string;
|
||||
public cookie?: string;
|
||||
|
||||
constructor(context: Context, api_key: string, api_version: string, account_index: number, player?: Player, cookie?: string, fetch?: FetchFunction, cache?: ICache, po_token?: string) {
|
||||
super();
|
||||
@@ -239,6 +240,7 @@ export default class Session extends EventEmitter {
|
||||
this.context = context;
|
||||
this.player = player;
|
||||
this.po_token = po_token;
|
||||
this.cookie = cookie;
|
||||
}
|
||||
|
||||
on(type: 'auth', listener: OAuth2AuthEventHandler): void;
|
||||
|
||||
Reference in New Issue
Block a user