1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-06-30 11:15:42 +02:00

disablebybydefault on ff and mas

This commit is contained in:
Kyle Spearrin 2018-02-27 00:00:31 -05:00
parent cf80b871bc
commit 0a54bd7ba6

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() {