Skip to content

Commit

Permalink
fix(Session): Don't try to extract api version from service worker
Browse files Browse the repository at this point in the history
It doesn't make sense to do this anyway because if it ever changed, we'd probably have to refactor the entire library.

Closes #602, #603, #604
  • Loading branch information
LuanRT committed Feb 23, 2024
1 parent 3e84775 commit 2068dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export default class Session extends EventEmitter {

const ytcfg = data[0][2];

const api_version = `v${ytcfg[0][0][6]}`;
const api_version = Constants.CLIENTS.WEB.API_VERSION;

const [ [ device_info ], api_key ] = ytcfg;

Expand Down

0 comments on commit 2068dfb

Please sign in to comment.