Skip to content

Commit 67d5753

Browse files
committed
fix: log script execution errors instead of silently swallowing them
1 parent a5890e2 commit 67d5753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/app/src/components/generative-ui/widget-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ window.addEventListener('message', function(e) {
430430
newScript.textContent = scriptInfo.text;
431431
}
432432
content.appendChild(newScript);
433-
} catch(e) {}
433+
} catch(e) { console.warn('[widget] script exec failed:', e); }
434434
});
435435
}
436436
reportHeight();

0 commit comments

Comments
 (0)