fix: Add error boundary to handle browser extension errors

- Create ErrorBoundary component to catch extension errors
- Ignore TronLink and other chrome-extension errors
- Prevent extension conflicts from crashing the app
This commit is contained in:
Unchained
2026-03-21 13:02:55 +02:00
parent a47698d5ca
commit 01d553bfea
2 changed files with 67 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import "./globals.css";
import type { Metadata } from "next";
import ErrorBoundary from "@/components/providers/ErrorBoundary";
export const metadata: Metadata = {
title: {
@@ -24,7 +25,9 @@ export default function RootLayout({
return (
<html lang="en">
<body className="antialiased">
{children}
<ErrorBoundary>
{children}
</ErrorBoundary>
</body>
</html>
);