Commit 7201944b authored by Noah Zinsmeister's avatar Noah Zinsmeister

Revert "fix(error handling): try reloading the app when encountering a javascript error (#3435)"

This reverts commit 5cf9e84d.
parent b0ff0f83
......@@ -49,11 +49,6 @@ type ErrorBoundaryState = {
const IS_UNISWAP = window.location.hostname === 'app.uniswap.org'
async function updateServiceWorker(): Promise<void> {
const ready = await navigator.serviceWorker.ready
await ready.update()
}
export default class ErrorBoundary extends React.Component<unknown, ErrorBoundaryState> {
constructor(props: unknown) {
super(props)
......@@ -61,13 +56,6 @@ export default class ErrorBoundary extends React.Component<unknown, ErrorBoundar
}
static getDerivedStateFromError(error: Error): ErrorBoundaryState {
updateServiceWorker()
.then(() => {
window.location.reload()
})
.catch((error) => {
console.error('Failed to update service worker', error)
})
return { error }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment