disablebybydefault on ff and mas

This commit is contained in:
Kyle Spearrin 2018-02-27 00:00:31 -05:00
parent cf80b871bc
commit 0a54bd7ba6
1 changed files with 4 additions and 1 deletions

View File

@ -49,8 +49,11 @@ export class SettingsComponent implements OnInit {
async ngOnInit() {
this.lockOption = await this.storageService.get<number>(ConstantsService.lockOptionKey);
this.disableGa = await this.storageService.get<boolean>(ConstantsService.disableGaKey);
this.disableFavicons = await this.storageService.get<boolean>(ConstantsService.disableFaviconKey);
const disableGa = await this.storageService.get<boolean>(ConstantsService.disableGaKey);
const disableGaByDefault = this.platformUtilsService.isFirefox() || this.platformUtilsService.isMacAppStore();
this.disableGa = disableGa || (disableGa == null && disableGaByDefault);
}
async saveLockOption() {