Feat: others browsers in requestPairingCode() (#879)

* update

* l

* string

* added Safari

* Update getPlatformId

* Update getPlatformId (fix)
This commit is contained in:
Bob
2024-06-30 00:10:50 -03:00
committed by GitHub
parent bd20fb631b
commit 13be112b18
3 changed files with 27 additions and 10 deletions

View File

@@ -29,10 +29,11 @@ import {
getCodeFromWSError,
getErrorCodeFromStreamError,
getNextPreKeysNode,
getPlatformId,
makeEventBuffer,
makeNoiseHandler,
printQRIfNecessaryListener,
promiseTimeout
promiseTimeout,
} from '../Utils'
import {
assertNodeErrorFree,
@@ -525,7 +526,7 @@ export const makeSocket = (config: SocketConfig) => {
{
tag: 'companion_platform_id',
attrs: {},
content: '49' // Chrome
content: getPlatformId(browser[1])
},
{
tag: 'companion_platform_display',