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

claude suggestion does not compile, awesome

This commit is contained in:
neuronull
2025-11-03 15:23:15 -07:00
parent 9f461189c1
commit 5812f552b2

View File

@@ -74,8 +74,6 @@ export class DesktopAutotypeService implements OnDestroy {
// The keyboard shortcut from the user settings menu
autotypeKeyboardShortcut$: Observable<string[]> = of(defaultWindowsAutotypeKeyboardShortcut);
private autotypeRequestListener?: () => void;
private destroy$ = new Subject<void>();
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`),