mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
messaging service implementation
This commit is contained in:
14
src/main.ts
14
src/main.ts
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user