diff --git a/client/src/app.jsx b/client/src/app.jsx index 1599c1ab..47a08e62 100644 --- a/client/src/app.jsx +++ b/client/src/app.jsx @@ -33,6 +33,10 @@ const ws = createSocket(events); ws.connect(); events.setWs(ws); +if (process.env.NODE_ENV !== 'development') { + LogRocket.init('yh0dy3/mnml'); +} + const App = () => ( {window.Stripe diff --git a/client/src/events.jsx b/client/src/events.jsx index ead1e49c..fa048f29 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -106,13 +106,12 @@ function registerEvents(store) { } function setAccount(account) { - if (account && process.env.NODE_ENV !== 'development') { - LogRocket.init('yh0dy3/mnml'); - LogRocket.identify(account.id, account); + if (account && window.Notification) { + window.Notification.requestPermission(); + } - if (window.Notification) { - window.Notification.requestPermission(); - } + if (process.env.NODE_ENV !== 'development') { + LogRocket.identify(account.id, account); } store.dispatch(actions.setAccount(account)); diff --git a/core/fixme.md b/core/fixme.md index 8264dee4..c3f3a70d 100644 --- a/core/fixme.md +++ b/core/fixme.md @@ -1,3 +1,2 @@ # FIXME game ready not auto starting resolve phase -triaged / decayed / siphoned / electrocute effect removal with purify / purge