Some improvements
This commit is contained in:
parent
bf29f728f0
commit
03a1541aa0
4 changed files with 25 additions and 21 deletions
|
@ -42,6 +42,7 @@ myPeer.on("open", async (id) => {
|
|||
connectToNewUser(userId, username, stream, myPeer)
|
||||
)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
if (error instanceof DOMException) return showNoVideoPrompt()
|
||||
|
||||
throw error
|
||||
|
|
Reference in a new issue