Skip to content

Commit

Permalink
fix(getSearchSuggestions): Allow empty queries
Browse files Browse the repository at this point in the history
Can be used to retrieve search suggestion history when logged in.
  • Loading branch information
LuanRT committed Dec 14, 2024
1 parent 0b73702 commit 523700b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Innertube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ export default class Innertube {
}

async getSearchSuggestions(query: string): Promise<string[]> {
throwIfMissing({ query });

const url = new URL(`${Constants.URLS.YT_SUGGESTIONS}search`);
url.searchParams.set('q', query);
url.searchParams.set('hl', this.#session.context.client.hl);
Expand Down

0 comments on commit 523700b

Please sign in to comment.