1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

refactor analytics to ts

This commit is contained in:
Kyle Spearrin
2018-01-12 10:05:30 -05:00
parent 3e8db9dc36
commit c10ade46c0
6 changed files with 134 additions and 90 deletions

View File

@@ -41,6 +41,8 @@ import {
UtilsService as UtilsServiceAbstraction,
} from 'jslib/abstractions';
import Analytics from '../scripts/analytics';
import BrowserApi from '../browser/browserApi';
import CommandsBackground from './commands.background';
@@ -157,6 +159,7 @@ export default class MainBackground {
}
async bootstrap() {
await new Analytics(window).init();
this.containerService.attachToWindow(window);
if (!this.isSafari) {