mirror of
https://github.com/bitwarden/browser
synced 2025-12-29 14:43:31 +00:00
check double initialization
This commit is contained in:
@@ -21,6 +21,11 @@ export class MainDesktopAutotypeService {
|
||||
}
|
||||
|
||||
init() {
|
||||
if (this.isInitialized) {
|
||||
this.logService.warning("MainDesktopAutotypeService already initialized.");
|
||||
return;
|
||||
}
|
||||
|
||||
ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INIT, () => {
|
||||
this.init();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user