Generated by Spark: Fix all reported errors.

This commit is contained in:
2026-01-16 16:52:20 +00:00
committed by GitHub
parent 22188071b0
commit 0845a93842

View File

@@ -10,6 +10,23 @@ import "./main.css"
import "./styles/theme.css"
import "./index.css"
const originalError = console.error
console.error = (...args) => {
if (
typeof args[0] === 'string' &&
args[0].includes('ResizeObserver loop completed with undelivered notifications')
) {
return
}
originalError.call(console, ...args)
}
window.addEventListener('error', (e) => {
if (e.message === 'ResizeObserver loop completed with undelivered notifications.') {
e.stopImmediatePropagation()
}
})
createRoot(document.getElementById('root')!).render(
<ErrorBoundary FallbackComponent={ErrorFallback}>
<App />