From 5812f552b2ab62577a938e500f9c179ecf0923a0 Mon Sep 17 00:00:00 2001 From: neuronull <9162534+neuronull@users.noreply.github.com> Date: Mon, 3 Nov 2025 15:23:15 -0700 Subject: [PATCH] claude suggestion does not compile, awesome --- .../services/desktop-autotype.service.ts | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/apps/desktop/src/autofill/services/desktop-autotype.service.ts b/apps/desktop/src/autofill/services/desktop-autotype.service.ts index b41e24537e2..7f75a55cf7d 100644 --- a/apps/desktop/src/autofill/services/desktop-autotype.service.ts +++ b/apps/desktop/src/autofill/services/desktop-autotype.service.ts @@ -74,8 +74,6 @@ export class DesktopAutotypeService implements OnDestroy { // The keyboard shortcut from the user settings menu autotypeKeyboardShortcut$: Observable = of(defaultWindowsAutotypeKeyboardShortcut); - private autotypeRequestListener?: () => void; - private destroy$ = new Subject(); constructor( @@ -120,17 +118,15 @@ export class DesktopAutotypeService implements OnDestroy { await ipc.autofill.initAutotype(); } - this.autotypeRequestListener = ipc.autofill.listenAutotypeRequest( - async (windowTitle, callback) => { - const possibleCiphers = await this.matchCiphersToWindowTitle(windowTitle); - const firstCipher = possibleCiphers?.at(0); + ipc.autofill.listenAutotypeRequest(async (windowTitle, callback) => { + const possibleCiphers = await this.matchCiphersToWindowTitle(windowTitle); + const firstCipher = possibleCiphers?.at(0); - return callback(null, { - username: firstCipher?.login?.username, - password: firstCipher?.login?.password, - }); - }, - ); + return callback(null, { + username: firstCipher?.login?.username, + password: firstCipher?.login?.password, + }); + }); // If `autotypeDefaultPolicy` is `true` for a user's organization, and the // user has never changed their local autotype setting (`autotypeEnabledState`),