fix(Session): Don't try to extract api version from service worker

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
This commit is contained in:
LuanRT
2024-02-22 22:25:30 -03:00
parent 3e84775fd3
commit 2068dfb73e

View File

@@ -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;