1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-29 22:53:44 +00:00

move the initialized ipcs back to constructor

This commit is contained in:
neuronull
2025-10-29 15:57:27 -06:00
parent bdb00d319d
commit e84087a56b

View File

@@ -18,17 +18,17 @@ export class MainDesktopAutotypeService {
private windowMain: WindowMain,
) {
this.autotypeKeyboardShortcut = new AutotypeKeyboardShortcut();
}
init() {
ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INIT, () => {
this.init();
});
ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INITIALIZED, () => {
return this.isInitialized;
});
ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INIT, () => {
this.init();
});
}
init() {
ipcMain.on(AUTOTYPE_IPC_CHANNELS.TOGGLE, (_event, enable: boolean) => {
if (enable) {
this.enableAutotype();