mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 09:06:51 +00:00
fix(HTTPClient): Adjust more context fields for the iOS client (#705)
This commit is contained in:
@@ -181,10 +181,14 @@ export default class HTTPClient {
|
||||
|
||||
switch (client) {
|
||||
case 'iOS':
|
||||
ctx.client.deviceMake = 'Apple';
|
||||
ctx.client.deviceModel = Constants.CLIENTS.iOS.DEVICE_MODEL;
|
||||
ctx.client.clientVersion = Constants.CLIENTS.iOS.VERSION;
|
||||
ctx.client.clientName = Constants.CLIENTS.iOS.NAME;
|
||||
ctx.client.platform = 'MOBILE';
|
||||
ctx.client.osName = 'iOS';
|
||||
delete ctx.client.browserName;
|
||||
delete ctx.client.browserVersion;
|
||||
break;
|
||||
case 'YTMUSIC':
|
||||
ctx.client.clientVersion = Constants.CLIENTS.YTMUSIC.VERSION;
|
||||
|
||||
Reference in New Issue
Block a user