From 2068dfb73eefc0e40157421d4e5b4096c0c8429c Mon Sep 17 00:00:00 2001 From: LuanRT Date: Thu, 22 Feb 2024 22:25:30 -0300 Subject: [PATCH] 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 --- src/core/Session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Session.ts b/src/core/Session.ts index 9b7b30e06..7ec7162ef 100644 --- a/src/core/Session.ts +++ b/src/core/Session.ts @@ -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;