mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
remove analytics settings
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 2e9ce15715...f4c4f28026
@@ -280,9 +280,6 @@
|
||||
"other": {
|
||||
"message": "Other"
|
||||
},
|
||||
"disableGa": {
|
||||
"message": "Disable Analytics"
|
||||
},
|
||||
"rateExtension": {
|
||||
"message": "Rate the Extension"
|
||||
},
|
||||
@@ -496,9 +493,6 @@
|
||||
"message": "No Folder",
|
||||
"description": "This is the folder for uncategorized items"
|
||||
},
|
||||
"gaDesc": {
|
||||
"message": "We use analytics to better learn how the extension is being used so that we can make it better. All data collection is completely anonymous."
|
||||
},
|
||||
"disableAddLoginNotification": {
|
||||
"message": "Disable Add Login Notification"
|
||||
},
|
||||
|
||||
@@ -64,15 +64,6 @@
|
||||
</div>
|
||||
<div class="box-footer">{{'dontShowIdentitiesCurrentTabDesc' | i18n}}</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="box-content">
|
||||
<div class="box-content-row box-content-row-checkbox" appBoxRow>
|
||||
<label for="ga">{{'disableGa' | i18n}}</label>
|
||||
<input id="ga" type="checkbox" (change)="saveGa()" [(ngModel)]="disableGa">
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">{{'gaDesc' | i18n}}</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="box-content">
|
||||
<div class="box-content-row box-content-row-checkbox" appBoxRow>
|
||||
|
||||
@@ -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