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

2
jslib

@ -1 +1 @@
Subproject commit 2e9ce1571514e2b4ae9ed61a1368b2db03a0ca5d
Subproject commit f4c4f2802637f775c3bfba2ef4109350bc842b8f

View File

@ -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"
},

View File

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

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