D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
washeet.softurecs.com
/
node_modules
/
baileys
/
lib
/
Utils
/
Filename :
browser-utils.js
back
Copy
import { platform, release } from 'os'; import { proto } from '../../WAProto/index.js'; const PLATFORM_MAP = { aix: 'AIX', darwin: 'Mac OS', win32: 'Windows', android: 'Android', freebsd: 'FreeBSD', openbsd: 'OpenBSD', sunos: 'Solaris', linux: undefined, haiku: undefined, cygwin: undefined, netbsd: undefined }; export const Browsers = { ubuntu: browser => ['Ubuntu', browser, '22.04.4'], macOS: browser => ['Mac OS', browser, '14.4.1'], baileys: browser => ['Baileys', browser, '6.5.0'], windows: browser => ['Windows', browser, '10.0.22631'], /** The appropriate browser based on your OS & release */ appropriate: browser => [PLATFORM_MAP[platform()] || 'Ubuntu', browser, release()] }; export const getPlatformId = (browser) => { const platformType = proto.DeviceProps.PlatformType[browser.toUpperCase()]; return platformType ? platformType.toString() : '1'; //chrome }; //# sourceMappingURL=browser-utils.js.map