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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user