mirror of
https://github.com/bitwarden/browser
synced 2024-12-26 09:54:35 +01:00
autofill overlay visibility setting should be off by default (#7266)
This commit is contained in:
parent
139ba13f2a
commit
f04cd7eeef
@ -1554,13 +1554,11 @@ export class StateService<
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getAutoFillOverlayVisibility(options?: StorageOptions): Promise<number> {
|
async getAutoFillOverlayVisibility(options?: StorageOptions): Promise<number> {
|
||||||
return (
|
const locallyStoredOptions = await this.defaultOnDiskLocalOptions();
|
||||||
(
|
const reconciledOptions = this.reconcileOptions(options, locallyStoredOptions);
|
||||||
await this.getGlobals(
|
const globals = await this.getGlobals(reconciledOptions);
|
||||||
this.reconcileOptions(options, await this.defaultOnDiskLocalOptions()),
|
|
||||||
)
|
return globals?.autoFillOverlayVisibility ?? AutofillOverlayVisibility.Off;
|
||||||
)?.autoFillOverlayVisibility ?? AutofillOverlayVisibility.OnFieldFocus
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async setAutoFillOverlayVisibility(value: number, options?: StorageOptions): Promise<void> {
|
async setAutoFillOverlayVisibility(value: number, options?: StorageOptions): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user