mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
remove analytics settings
This commit is contained in:
@@ -30,7 +30,6 @@ export class OptionsComponent implements OnInit {
|
||||
dontShowCards = false;
|
||||
dontShowIdentities = false;
|
||||
showDisableContextMenu = true;
|
||||
disableGa = false;
|
||||
theme: string;
|
||||
themeOptions: any[];
|
||||
defaultUriMatch = UriMatchType.Domain;
|
||||
@@ -61,10 +60,6 @@ export class OptionsComponent implements OnInit {
|
||||
this.enableAutoFillOnPageLoad = await this.storageService.get<boolean>(
|
||||
ConstantsService.enableAutoFillOnPageLoadKey);
|
||||
|
||||
const disableGa = await this.storageService.get<boolean>(ConstantsService.disableGaKey);
|
||||
const disableGaByDefault = this.platformUtilsService.isFirefox();
|
||||
this.disableGa = disableGa || (disableGa == null && disableGaByDefault);
|
||||
|
||||
this.disableAddLoginNotification = await this.storageService.get<boolean>(
|
||||
ConstantsService.disableAddLoginNotificationKey);
|
||||
|
||||
@@ -87,16 +82,6 @@ export class OptionsComponent implements OnInit {
|
||||
this.defaultUriMatch = defaultUriMatch == null ? UriMatchType.Domain : defaultUriMatch;
|
||||
}
|
||||
|
||||
async saveGa() {
|
||||
if (this.disableGa) {
|
||||
this.callAnalytics('Analytics', !this.disableGa);
|
||||
}
|
||||
await this.storageService.save(ConstantsService.disableGaKey, this.disableGa);
|
||||
if (!this.disableGa) {
|
||||
this.callAnalytics('Analytics', !this.disableGa);
|
||||
}
|
||||
}
|
||||
|
||||
async updateAddLoginNotification() {
|
||||
await this.storageService.save(ConstantsService.disableAddLoginNotificationKey,
|
||||
this.disableAddLoginNotification);
|
||||
|
||||
Reference in New Issue
Block a user