Team invitation

This commit is contained in:
yflory
2019-09-20 15:27:20 +02:00
parent 3a76e84286
commit e4e2c3a19d
8 changed files with 405 additions and 115 deletions

View File

@@ -167,9 +167,11 @@ define([
// Universal direct channel
var modules = {};
funcs.makeUniversal = function (type, cfg) {
modules[type] = {
onEvent: cfg.onEvent || function () {}
};
if (cfg && cfg.onEvent) {
modules[type] = {
onEvent: cfg.onEvent || function () {}
};
}
var sframeChan = funcs.getSframeChannel();
return {
execCommand: function (cmd, data, cb) {