diff options
author | 2020-10-12 15:04:06 +0100 | |
---|---|---|
committer | 2020-10-12 15:04:06 +0100 | |
commit | 0abf07647a7f56ecd4b16c3bd0b6aef9cf8052a8 (patch) | |
tree | 324220fcdf616152d8743e59b2ac6dcb6c6db816 /src/index.tsx | |
parent | Merge pull request #22 from python-discord/sentry/add-sentry-prefix (diff) | |
parent | Remove unused dependencies (diff) |
Merge pull request #23 from python-discord/build/new-process
Introduce new build system: SWC
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx index 783d34f..fd6ec18 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -38,6 +38,10 @@ ReactDOM.render( dialogOptions={{ title: "You've found a bug in PyDis forms!" }} + onError={(err) => { + if(process.env.NODE_ENV === "development") + console.log(err) + }} > <App /> </Sentry.ErrorBoundary> @@ -45,7 +49,4 @@ ReactDOM.render( document.getElementById('root') ); -// If you want your app to work offline and load faster, you can change -// unregister() to register() below. Note this comes with some pitfalls. -// Learn more about service workers: https://bit.ly/CRA-PWA serviceWorker.unregister(); |