1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

[deps] Autofill: Update prettier to v3 (#7014)

* [deps] Autofill: Update prettier to v3

* prettier formatting updates

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
This commit is contained in:
renovate[bot]
2023-11-29 16:15:20 -05:00
committed by GitHub
parent 4ff5f38e89
commit 28de9439be
1145 changed files with 5898 additions and 5612 deletions

View File

@@ -12,7 +12,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
private messagingService: MessagingService,
private clipboardWriteCallback: (clipboardValue: string, clearMs: number) => void,
private biometricCallback: () => Promise<boolean>,
private win: Window & typeof globalThis
private win: Window & typeof globalThis,
) {}
static getDevice(win: Window & typeof globalThis): DeviceType {
@@ -197,7 +197,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
type: "error" | "success" | "warning" | "info",
title: string,
text: string | string[],
options?: any
options?: any,
): void {
this.messagingService.send("showToast", {
text: text,
@@ -332,7 +332,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
autofillCommand = "Cmd+Shift+L";
} else if (this.isFirefox()) {
autofillCommand = (await browser.commands.getAll()).find(
(c) => c.name === "autofill_login"
(c) => c.name === "autofill_login",
).shortcut;
// Firefox is returning Ctrl instead of Cmd for the modifier key on macOS if
// the command is the default one set on installation.
@@ -345,8 +345,8 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
} else {
await new Promise((resolve) =>
chrome.commands.getAll((c) =>
resolve((autofillCommand = c.find((c) => c.name === "autofill_login").shortcut))
)
resolve((autofillCommand = c.find((c) => c.name === "autofill_login").shortcut)),
),
);
}
return autofillCommand;