1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

remove analytics settings

This commit is contained in:
Kyle Spearrin
2019-01-15 11:08:25 -05:00
parent 5d8f43ab9a
commit b6705bc338
4 changed files with 1 additions and 31 deletions

View File

@@ -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);