});
app.on('will-quit', function(event) {
runtime_debug('will-quit');
- this.extensionManager.deactivateAll(app);
+ _this.extensionManager.deactivateAll(app);
return _this.killAllProcesses();
});
app.on('quit', function(event) {
});
app.on('ready', function(event) {
runtime_debug('ready');
- this.extensionManager = new ExtensionManager(EXTENSIONS_PATH);
+ _this.extensionManager = new ExtensionManager(EXTENSIONS_PATH);
if (!options.noExtensions) {
- this.extensionManager.build();
+ _this.extensionManager.build();
}
- this.extensionManager.activateAll(app);
+ _this.extensionManager.activateAll(app);
if (wrt.isElectronLaunch()) {
return;
}
- this.webApplication = new WebApplication(options);
+ _this.webApplication = new WebApplication(options);
});
}
onPause(web_window_id) {
});
ipcMain.on(IPC_MESSAGE.EXTENSIONS.INSTALLED, (sender, name) => {
runtime_debug('handleIpcMessages: INSTALLED ' + name);
- this.extensionManager.build();
- return this.extensionManager.activate(app, name);
+ _this.extensionManager.build();
+ return _this.extensionManager.activate(app, name);
});
ipcMain.on(IPC_MESSAGE.EXTENSIONS.UNINSTALLED, (sender, name) => {
runtime_debug('handleIpcMessages: UNINSTALLED ' + name);
- return this.extensionManager.deactivate(app, name);
+ return _this.extensionManager.deactivate(app, name);
});
ipcMain.on(IPC_MESSAGE.EXTENSIONS.ACTIVATE, (sender, name) => {
runtime_debug('handleIpcMessages: ACTIVATE ' + name);
- return this.extensionManager.activate(app, name);
+ return _this.extensionManager.activate(app, name);
});
ipcMain.on(IPC_MESSAGE.EXTENSIONS.DEACTIVATE, (sender, name) => {
runtime_debug('handleIpcMessages: DEACTIVATE ' + name);
- return this.extensionManager.deactivate(app, name);
+ return _this.extensionManager.deactivate(app, name);
});
ipcMain.on(IPC_MESSAGE.EXTENSIONS.INSTALLED, (sender, name) => {
runtime_debug('handleIpcMessages: INSTALLED ' + name);
- this.extensionManager.build();
- return this.extensionManager.activate(app, name);
+ _this.extensionManager.build();
+ return _this.extensionManager.activate(app, name);
});
ipcMain.on(IPC_MESSAGE.EXTENSIONS.UNINSTALLED, (sender, name) => {
runtime_debug('handleIpcMessages: UNINSTALLED ' + name);
- return this.extensionManager.deactivate(app, name);
+ return _this.extensionManager.deactivate(app, name);
});
ipcMain.on(IPC_MESSAGE.EXTENSIONS.ACTIVATE, (sender, name) => {
runtime_debug('handleIpcMessages: ACTIVATE ' + name);
- return this.extensionManager.activate(app, name);
+ return _this.extensionManager.activate(app, name);
});
ipcMain.on(IPC_MESSAGE.EXTENSIONS.DEACTIVATE, (sender, name) => {
runtime_debug('handleIpcMessages: DEACTIVATE ' + name);
- return this.extensionManager.deactivate(app, name);
+ return _this.extensionManager.deactivate(app, name);
});
}
}