1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-7562] Add DuckDuckGo back to State Service (#8791)

* Add ddg back to state service

* Remove getters
This commit is contained in:
Robyn MacCallum
2024-04-19 09:45:09 -04:00
committed by GitHub
parent 2916fc7404
commit c1c6afb0f4
4 changed files with 27 additions and 0 deletions

View File

@@ -571,6 +571,20 @@ export class StateService<
);
}
async setEnableDuckDuckGoBrowserIntegration(
value: boolean,
options?: StorageOptions,
): Promise<void> {
const globals = await this.getGlobals(
this.reconcileOptions(options, await this.defaultOnDiskOptions()),
);
globals.enableDuckDuckGoBrowserIntegration = value;
await this.saveGlobals(
globals,
this.reconcileOptions(options, await this.defaultOnDiskOptions()),
);
}
/**
* @deprecated Use UserKey instead
*/