mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix pairing code not working
This commit is contained in:
@@ -28,7 +28,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).toString() : '49' //chrome
|
return platformType ? platformType.toString() : '1' //chrome
|
||||||
}
|
}
|
||||||
|
|
||||||
export const BufferJSON = {
|
export const BufferJSON = {
|
||||||
|
|||||||
Reference in New Issue
Block a user