fix(HTTPClient): Adjust more context fields for the iOS client (#705)

This commit is contained in:
absidue
2024-07-26 16:15:12 +02:00
committed by GitHub
parent a9bf225a62
commit 3153375bca

View File

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