aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx7
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();