From fdf9d4816283a8a10145112965e3d8ea05b919e1 Mon Sep 17 00:00:00 2001 From: LightningNeko <80431773+LightningNeko@users.noreply.github.com> Date: Wed, 3 Jul 2024 04:28:15 -0300 Subject: [PATCH] fix: invalid children for header "companion_platform_id": 49 (number) (#897) --- src/Utils/generics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/generics.ts b/src/Utils/generics.ts index 1748889..c99dbb4 100644 --- a/src/Utils/generics.ts +++ b/src/Utils/generics.ts @@ -29,7 +29,7 @@ export const Browsers: BrowsersMap = { export const getPlatformId = (browser: string) => { const platformType = proto.DeviceProps.PlatformType[browser.toUpperCase()] - return platformType ? platformType.toString().charCodeAt(0) : '49' //chrome + return platformType ? platformType.toString().charCodeAt(0).toString() : '49' //chrome } export const BufferJSON = {