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

Revert "ipc handlers in init"

This reverts commit a23999edcf.
This commit is contained in:
neuronull
2025-11-03 11:00:48 -07:00
parent 9fb65316db
commit 89f412f52a

View File

@@ -18,9 +18,7 @@ export class MainDesktopAutotypeService {
private windowMain: WindowMain,
) {
this.autotypeKeyboardShortcut = new AutotypeKeyboardShortcut();
}
init() {
ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INIT, () => {
this.init();
});
@@ -28,7 +26,9 @@ 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();