mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Fixed connection data parse on new connection
parent
d7e7cfe6f7
commit
5f8fa08fe0
|
@ -368,7 +368,8 @@ export class ParticipantService {
|
|||
*/
|
||||
getNicknameFromConnectionData(data: string): string {
|
||||
try {
|
||||
return JSON.parse(data).clientData;
|
||||
const dataClean = data.replace('%/%{}', '');
|
||||
return JSON.parse(dataClean).clientData;
|
||||
} catch (error) {
|
||||
return 'OpenVidu_User';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue