default disable on FirefoxExtension

This commit is contained in:
Kyle Spearrin 2018-07-25 11:01:03 -04:00
parent 799361d933
commit 9df96a3288
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ export class Analytics {
} }
this.appVersion = this.platformUtilsService.getApplicationVersion(); this.appVersion = this.platformUtilsService.getApplicationVersion();
this.defaultDisabled = this.platformUtilsService.isFirefox() || this.platformUtilsService.isMacAppStore(); this.defaultDisabled = this.platformUtilsService.getDevice() === DeviceType.FirefoxExtension ||
this.platformUtilsService.isMacAppStore();
this.gaTrackingId = this.platformUtilsService.analyticsId(); this.gaTrackingId = this.platformUtilsService.analyticsId();
(win as any).GoogleAnalyticsObject = GaObj; (win as any).GoogleAnalyticsObject = GaObj;