Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(params = {}) {
this.isDebug = params.isDebug || false;
this.withDevtools = params.withDevtools || false;
this._initializeConfiguration(params);
this._initializeWindowsManager(params);
this._initializeMenu();
this._initializeUpdateStatus();
this._initializeGoogleDriveIntegration();
this._initializeSessionManager();
this._initializeApplicationMenu();
this._initializeAppPrompts();
this._initializeThemes();
Oauth2Identity.listen();
// Remote commands protocol
if (params.port) {
this._initializeCommunicationProtocol(params.port);
}
// The most general events
ipcMain.on('open-external-url', this._externalUrlHandler.bind(this));
}
log.debug('Protocols ready');
this._initializeMenu();
this._initializeWindowsManager();
this._initializeUpdateStatus();
this._initializeGoogleDriveIntegration();
this._initializeSessionManager();
this._initializeSearchService();
this._initializeApplicationMenu();
this.remote = new RemoteApi(this.wm);
this.wm.open();
if (!this.isDebug()) {
this.us.start(this.initOptions.settingsFile);
}
this.prompts = new AppPrompts();
this.prompts.listen();
Oauth2Identity.listen();
log.info('Application is now ready.');
})
.catch((cause) => {