1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

move common electron code to jslib

This commit is contained in:
Kyle Spearrin
2018-04-24 16:00:20 -04:00
parent 768ab7dd0a
commit 5d3b99ce6f
9 changed files with 1353 additions and 13 deletions

View File

@@ -4,8 +4,22 @@ import { StorageService } from '../abstractions/storage.service';
import { ConstantsService } from '../services/constants.service';
import { DeviceType } from '../enums/deviceType';
const GaObj = 'ga';
export const AnalyticsIds = {
[DeviceType.Chrome]: 'UA-81915606-6',
[DeviceType.Firefox]: 'UA-81915606-7',
[DeviceType.Opera]: 'UA-81915606-8',
[DeviceType.Edge]: 'UA-81915606-9',
[DeviceType.Vivaldi]: 'UA-81915606-15',
[DeviceType.Safari]: 'UA-81915606-16',
[DeviceType.Windows]: 'UA-81915606-17',
[DeviceType.Linux]: 'UA-81915606-19',
[DeviceType.MacOs]: 'UA-81915606-18',
};
export class Analytics {
private gaTrackingId: string = null;
private defaultDisabled = false;