Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 14f07a7

Browse files
authored
Merge pull request #3176 from withspectrum/2.4.1
2.4.1
2 parents f7e2641 + 1e5850a commit 14f07a7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Spectrum",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"license": "BSD-3-Clause",
55
"devDependencies": {
66
"babel-cli": "^6.24.1",

src/helpers/analytics/track.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// @flow
2-
2+
import { isDesktopApp } from '../is-desktop-app';
33
const amplitude = window.amplitude;
4-
54
export const track = (eventType: string, eventProperties?: Object = {}) => {
65
if (!amplitude) {
76
console.warn('No amplitude function attached to window');
@@ -22,7 +21,7 @@ export const track = (eventType: string, eventProperties?: Object = {}) => {
2221
// console.warn(`[Amplitude] Tracking ${eventType}`);
2322
return amplitude.getInstance().logEvent(eventType, {
2423
...eventProperties,
25-
client: 'web',
24+
client: isDesktopApp() ? 'desktop' : 'web',
2625
});
2726
};
2827

0 commit comments

Comments
 (0)