mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
settings and lock options
This commit is contained in:
13
src/main.ts
13
src/main.ts
@@ -2,8 +2,11 @@ import { BrowserWindow } from 'electron';
|
||||
|
||||
import { MenuMain } from './main/menu.main';
|
||||
import { MessagingMain } from './main/messaging.main';
|
||||
import { PowerMonitorMain } from './main/powerMonitor.main';
|
||||
import { WindowMain } from './main/window.main';
|
||||
|
||||
import { DesktopMainMessagingService } from './services/desktopMainMessaging.service';
|
||||
import { DesktopStorageService } from './services/desktopStorage.service';
|
||||
import { I18nService } from './services/i18n.service';
|
||||
|
||||
const args = process.argv.slice(1);
|
||||
@@ -15,16 +18,22 @@ if (watch) {
|
||||
require('electron-reload')(__dirname, {});
|
||||
}
|
||||
|
||||
const i18nService = new I18nService('en', './locales/');
|
||||
const windowMain = new WindowMain(dev);
|
||||
const messagingMain = new MessagingMain(windowMain);
|
||||
const menuMain = new MenuMain(windowMain, i18nService);
|
||||
|
||||
const i18nService = new I18nService('en', './locales/');
|
||||
const storageService = new DesktopStorageService();
|
||||
const messagingService = new DesktopMainMessagingService(windowMain, messagingMain);
|
||||
|
||||
const menuMain = new MenuMain(windowMain, i18nService, messagingService);
|
||||
const powerMonitorMain = new PowerMonitorMain(storageService, messagingService);
|
||||
|
||||
windowMain.init().then(() => {
|
||||
messagingMain.init();
|
||||
return i18nService.init();
|
||||
}).then(() => {
|
||||
menuMain.init();
|
||||
powerMonitorMain.init();
|
||||
}, (e: any) => {
|
||||
// tslint:disable-next-line
|
||||
console.log(e);
|
||||
|
||||
Reference in New Issue
Block a user