small fixes

This commit is contained in:
zadam
2020-02-17 22:38:46 +01:00
parent e7af24c139
commit f2cf361acf
7 changed files with 32 additions and 32 deletions

View File

@@ -45,14 +45,14 @@ class AppContext extends Component {
this.triggerEvent(eventName);
});
this.children = [ rootWidget ];
this.executors = [
this.tabManager,
new DialogCommandExecutor(this),
new Entrypoints(this)
];
this.children = [ rootWidget, ...this.executors ];
if (utils.isElectron()) {
this.children.push(new ZoomService(this));
@@ -75,7 +75,9 @@ class AppContext extends Component {
}
}
console.error(`Unhandled command ${name}`);
console.debug(`Unhandled command ${name}, converting to event.`);
await this.triggerEvent(name, data);
}
getComponentByEl(el) {