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

claude: IPC Handler Registration in Constructor

This commit is contained in:
neuronull
2025-10-29 15:18:44 -06:00
parent 3c7f570a7e
commit 18456c0ff3

View File

@@ -17,7 +17,9 @@ export class MainDesktopAutotypeService {
private windowMain: WindowMain,
) {
this.autotypeKeyboardShortcut = new AutotypeKeyboardShortcut();
}
init() {
ipcMain.handle("autofill.initAutotype", () => {
this.init();
});
@@ -25,9 +27,7 @@ export class MainDesktopAutotypeService {
ipcMain.handle("autofill.autotypeIsInitialized", () => {
return this.isInitialized;
});
}
init() {
ipcMain.on("autofill.toggleAutotype", (_event, enable: boolean) => {
if (enable) {
this.enableAutotype();