Skip to content

Commit

Permalink
fix(HTTPClient): Adjust more context fields for the iOS client (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Jul 26, 2024
1 parent a9bf225 commit 3153375
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/HTTPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3153375

Please sign in to comment.