Fix jwt-token
This commit is contained in:
@@ -3,6 +3,19 @@ import ReactDOM from 'react-dom/client'
|
||||
import App from './App.jsx'
|
||||
import './index.css'
|
||||
|
||||
// Suppress browser extension errors in development
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
const originalError = console.error;
|
||||
console.error = (...args) => {
|
||||
// Filter out extension-related errors
|
||||
const message = args[0]?.toString() || '';
|
||||
if (message.includes('content.js') || message.includes('checkoutUrls')) {
|
||||
return; // Suppress extension errors
|
||||
}
|
||||
originalError.apply(console, args);
|
||||
};
|
||||
}
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
|
||||
Reference in New Issue
Block a user