mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 03:33:54 +00:00
Autofill: Use UserKeyDefinitions for user-scoped data (#8588)
* Do not clear badge settings on user events * Do not clear default uri match strategy * Use explicit clearOn events for autofill settings
This commit is contained in:
@@ -29,11 +29,12 @@ const EQUIVALENT_DOMAINS = new UserKeyDefinition(DOMAIN_SETTINGS_DISK, "equivale
|
||||
clearOn: ["logout"],
|
||||
});
|
||||
|
||||
const DEFAULT_URI_MATCH_STRATEGY = new KeyDefinition(
|
||||
const DEFAULT_URI_MATCH_STRATEGY = new UserKeyDefinition(
|
||||
DOMAIN_SETTINGS_DISK,
|
||||
"defaultUriMatchStrategy",
|
||||
{
|
||||
deserializer: (value: UriMatchStrategySetting) => value ?? UriMatchStrategy.Domain,
|
||||
clearOn: [],
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user