1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

use version browser api in help

This commit is contained in:
Kyle Spearrin
2018-01-12 10:41:01 -05:00
parent 8ad36e4740
commit 1e11a89fc2
3 changed files with 6 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ export default class Analytics {
private gaFunc: Function = null;
private win: any;
private isBackground: boolean = false;
private appVersion: string = BrowserApi.getApplicationVersion();
constructor(win: Window) {
const bgPage = BrowserApi.getBackgroundPage();
@@ -70,7 +71,7 @@ export default class Analytics {
return;
}
const version = encodeURIComponent(BrowserApi.getApplicationVersion());
const version = encodeURIComponent(this.appVersion);
let message = 'v=1&tid=' + this.gaTrackingId + '&cid=' + gaAnonAppId + '&cd1=' + version;
if (param1 === 'pageview' && param2) {