From 26b841921fdceee046f658428fb495dd2a5d302c Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Fri, 2 Nov 2018 21:46:35 +0800 Subject: [PATCH] feat: submit version in analytics --- src/analytics.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/analytics.js b/src/analytics.js index 9cf2a31..8631d83 100644 --- a/src/analytics.js +++ b/src/analytics.js @@ -1,3 +1,4 @@ +import { version } from '../package' // TODO: set this through ENV or something else const LOG_ENDPOINT = 'https://enix.one/gitako/log' @@ -29,6 +30,7 @@ function reportError(error) { `${LOG_ENDPOINT}?${encodeParams({ error: (error && error.message) || error, path: window.location.href, + version, })}` ) }