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