1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

add analytics support

This commit is contained in:
Kyle Spearrin
2018-01-26 10:50:06 -05:00
parent 5b92d9d31f
commit 0f5af81bd9
5 changed files with 21 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ import { DesktopStorageService } from '../../services/desktopStorage.service';
import { DesktopSecureStorageService } from '../../services/desktopSecureStorage.service';
import { I18nService } from '../../services/i18n.service';
import { Analytics } from 'jslib/misc/analytics';
import {
ApiService,
AppIdService,
@@ -90,6 +92,7 @@ const authService: AuthServiceAbstraction = new AuthService(cryptoService, apiSe
userService, tokenService, appIdService, platformUtilsService, constantsService,
messagingService);
const analytics = new Analytics(window, null, platformUtilsService, storageService, appIdService);
containerService.attachToWindow(window);
environmentService.setUrlsFromStorage().then(() => {
return syncService.fullSync(true);