Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/sim/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const BROWSER_EXTENSION_ATTRIBUTES = [
if (typeof window !== 'undefined') {
const originalError = console.error
console.error = (...args) => {
if (args[0].includes('Hydration')) {
const firstArg = args[0]
if (typeof firstArg === 'string' && firstArg.includes('Hydration')) {
const isExtensionError = BROWSER_EXTENSION_ATTRIBUTES.some((attr) =>
args.some((arg) => typeof arg === 'string' && arg.includes(attr))
)
Expand Down