Improve application size and loading type

by by nucleus
This commit is contained in:
Thomas Nordquist
2019-01-23 13:55:16 +01:00
parent b2e4c7db36
commit 8091323623
14 changed files with 464 additions and 48 deletions

View File

@@ -8,17 +8,17 @@ if (!userId) {
window.localStorage.setItem('userId', userId)
}
const Nucleus = require('electron-nucleus')('5c3b3e0443b7cc00eec3782b', {
userId,
disableInDev: true,
})
// const Nucleus = require('electron-nucleus')('5c3b3e0443b7cc00eec3782b', {
// userId,
// disableInDev: true,
// })
export default Nucleus
// export default Nucleus
export function trackEvent(name: string) {
if (name.match(/^@@redux/)) {
return
}
Nucleus.track(name)
// Nucleus.track(name)
electronRendererTelementry.trackEvent(name)
}