disablebybydefault on ff and mas
This commit is contained in:
parent
cf80b871bc
commit
0a54bd7ba6
|
@ -49,8 +49,11 @@ export class SettingsComponent implements OnInit {
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.lockOption = await this.storageService.get<number>(ConstantsService.lockOptionKey);
|
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);
|
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() {
|
async saveLockOption() {
|
||||||
|
|
Loading…
Reference in New Issue