1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

messaging service implementation

This commit is contained in:
Kyle Spearrin
2018-02-08 12:24:17 -05:00
parent 6452cfaf7f
commit 825cc5fd37
8 changed files with 124 additions and 16 deletions

View File

@@ -30,6 +30,20 @@ import { I18nService } from './services/i18n.service';
const i18nService = new I18nService('en', './locales/');
i18nService.init().then(() => { });
ipcMain.on('messagingService', async (event: any, message: any) => {
switch (message.command) {
case 'loggedIn':
break;
case 'logout':
break;
case 'syncCompleted':
console.log('sync completed!!');
break;
default:
break;
}
});
let win: BrowserWindow;
const args = process.argv.slice(1);
const watch = args.some((val) => val === '--watch');