mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: invalid children for header "companion_platform_id": 49 (number) (#897)
This commit is contained in:
@@ -29,7 +29,7 @@ export const Browsers: BrowsersMap = {
|
|||||||
|
|
||||||
export const getPlatformId = (browser: string) => {
|
export const getPlatformId = (browser: string) => {
|
||||||
const platformType = proto.DeviceProps.PlatformType[browser.toUpperCase()]
|
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 = {
|
export const BufferJSON = {
|
||||||
|
|||||||
Reference in New Issue
Block a user