Le SELECT du choix de rôle devient un radio
This commit is contained in:
20
node_modules/wrtc/lib/error.js
generated
vendored
Normal file
20
node_modules/wrtc/lib/error.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
function RTCError(code, message) {
|
||||
this.name = this.reasonName[Math.min(code, this.reasonName.length - 1)];
|
||||
this.message = typeof message === 'string' ? message : this.name;
|
||||
}
|
||||
|
||||
RTCError.prototype.reasonName = [
|
||||
// These strings must match those defined in the WebRTC spec.
|
||||
'NO_ERROR', // Should never happen -- only used for testing
|
||||
'INVALID_CONSTRAINTS_TYPE',
|
||||
'INVALID_CANDIDATE_TYPE',
|
||||
'INVALID_STATE',
|
||||
'INVALID_SESSION_DESCRIPTION',
|
||||
'INCOMPATIBLE_SESSION_DESCRIPTION',
|
||||
'INCOMPATIBLE_CONSTRAINTS',
|
||||
'INTERNAL_ERROR'
|
||||
];
|
||||
|
||||
module.exports = RTCError;
|
||||
Reference in New Issue
Block a user