mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(editor): Do not overwrite window.onerror in production (#5135)
This commit is contained in:
parent
a9fb393e1a
commit
0dbba6d57f
|
@ -45,7 +45,7 @@ router.afterEach((to, from) => {
|
|||
runExternalHook('main.routeChange', useWebhooksStore(), { from, to });
|
||||
});
|
||||
|
||||
if (import.meta.env.NODE_ENV !== 'production') {
|
||||
if (!import.meta.env.PROD) {
|
||||
// Make sure that we get all error messages properly displayed
|
||||
// as long as we are not in production mode
|
||||
window.onerror = (message, source, lineno, colno, error) => {
|
||||
|
|
Loading…
Reference in a new issue