mirror of
https://github.com/bitwarden/browser
synced 2025-12-29 14:43:31 +00:00
ipc handlers in init
This commit is contained in:
@@ -18,7 +18,9 @@ export class MainDesktopAutotypeService {
|
||||
private windowMain: WindowMain,
|
||||
) {
|
||||
this.autotypeKeyboardShortcut = new AutotypeKeyboardShortcut();
|
||||
}
|
||||
|
||||
init() {
|
||||
ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INIT, () => {
|
||||
this.init();
|
||||
});
|
||||
@@ -26,9 +28,7 @@ export class MainDesktopAutotypeService {
|
||||
ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INITIALIZED, () => {
|
||||
return this.isInitialized;
|
||||
});
|
||||
}
|
||||
|
||||
init() {
|
||||
ipcMain.on(AUTOTYPE_IPC_CHANNELS.TOGGLE, (_event, enable: boolean) => {
|
||||
if (enable) {
|
||||
this.enableAutotype();
|
||||
|
||||
Reference in New Issue
Block a user