There was an error while loading. Please reload this page.
1 parent 5f1f939 commit c22e831Copy full SHA for c22e831
lib/rooms/WaitingRoom.js
@@ -795,8 +795,10 @@ WaitingRoom.prototype.parseSettings = function(settings) {
795
throw new TypeError(where + 'REMOTE_DISPATCH invalid ' +
796
'or missing url. Found: ' + r);
797
}
798
- // TODO check function.
799
- // if (r.preprocess && 'function' !== typeof r.preprocess)
+ if (r.preprocess && 'function' !== typeof r.preprocess) {
+ throw new TypeError(where + 'REMOTE_DISPATCH.preprocess must be ' +
800
+ 'function or undefined. Found: ' + r.preprocess);
801
+ }
802
this.REMOTE_DISPATCH = r;
803
804
0 commit comments