1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-06-30 11:15:36 +02:00

autofill overlay visibility setting should be off by default (#7266)

This commit is contained in:
Jonathan Prusik 2023-12-18 18:10:47 -05:00 committed by GitHub
parent 139ba13f2a
commit f04cd7eeef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1554,13 +1554,11 @@ export class StateService<
}
async getAutoFillOverlayVisibility(options?: StorageOptions): Promise<number> {
return (
(
await this.getGlobals(
this.reconcileOptions(options, await this.defaultOnDiskLocalOptions()),
)
)?.autoFillOverlayVisibility ?? AutofillOverlayVisibility.OnFieldFocus
);
const locallyStoredOptions = await this.defaultOnDiskLocalOptions();
const reconciledOptions = this.reconcileOptions(options, locallyStoredOptions);
const globals = await this.getGlobals(reconciledOptions);
return globals?.autoFillOverlayVisibility ?? AutofillOverlayVisibility.Off;
}
async setAutoFillOverlayVisibility(value: number, options?: StorageOptions): Promise<void> {