From 6a3f3100be6f795ae0e3e295e48365870127ae0a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 16 Feb 2018 15:06:54 -0500 Subject: [PATCH] no analytics in dev --- src/app/services/services.module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index 723f3f21b25..3c8f4e229d3 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -7,6 +7,8 @@ import { import { ToasterModule } from 'angular2-toaster'; +import { isDev } from '../../scripts/utils'; + import { DesktopPlatformUtilsService } from '../../services/desktopPlatformUtils.service'; import { DesktopRendererMessagingService } from '../../services/desktopRendererMessaging.service'; import { DesktopRendererSecureStorageService } from '../../services/desktopRendererSecureStorage.service'; @@ -101,7 +103,7 @@ const authService = new AuthService(cryptoService, apiService, userService, tokenService, appIdService, i18nService, platformUtilsService, constantsService, messagingService); -const analytics = new Analytics(window, null, platformUtilsService, storageService, appIdService); +const analytics = new Analytics(window, () => isDev(), platformUtilsService, storageService, appIdService); containerService.attachToWindow(window); environmentService.setUrlsFromStorage().then(() => { return syncService.fullSync(true);