diff --git a/src/components/ErrorBoundary.jsx b/src/components/ErrorBoundary.jsx index 845839d..9072959 100644 --- a/src/components/ErrorBoundary.jsx +++ b/src/components/ErrorBoundary.jsx @@ -15,6 +15,7 @@ class ErrorBoundary extends PureComponent { componentDidCatch(error, info) { console.error('Sorry, Something went wrong.') console.error(error) + window.$pageSpy.triggerPlugins('onOfflineLog', 'upload'); this.setState({ hasError: true, info: error.message }) } @@ -30,4 +31,4 @@ class ErrorBoundary extends PureComponent { } } -export default ErrorBoundary \ No newline at end of file +export default ErrorBoundary