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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user