feature: expose desktop manager for Electron
This commit is contained in:
@@ -34,6 +34,13 @@ export class ApplicationGroup {
|
||||
this.$rootScope = $rootScope;
|
||||
this.onApplicationDeinit = this.onApplicationDeinit.bind(this);
|
||||
this.createDefaultApplication();
|
||||
|
||||
/** FIXME(baptiste): rely on a less fragile method to detect Electron */
|
||||
if ((window as any).isElectron) {
|
||||
Object.defineProperty(window, 'desktopManager', {
|
||||
get: () => this.activeApplication?.getDesktopService()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private createDefaultApplication() {
|
||||
|
||||
Reference in New Issue
Block a user