mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
feat: submit version in analytics
This commit is contained in:
parent
c1a490c403
commit
26b841921f
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
})}`
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue