1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

remove analytics in favor of platform utils

This commit is contained in:
Kyle Spearrin
2018-10-03 00:21:22 -04:00
parent 89a448b12f
commit adb3dc78ee
19 changed files with 50 additions and 86 deletions

View File

@@ -1,4 +1,3 @@
import { ToasterService } from 'angular2-toaster';
import * as tldjs from 'tldjs';
import { BrowserApi } from '../browser/browserApi';
@@ -203,6 +202,14 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
});
}
eventTrack(action: string, label?: string, options?: any) {
this.messagingService.send('analyticsEventTrack', {
action: action,
label: label,
options: options,
});
}
isDev(): boolean {
return process.env.ENV === 'development';
}