From 0dbba6d57f34b67935867bd81359fb833654fce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 11 Jan 2023 22:22:12 +0100 Subject: [PATCH] fix(editor): Do not overwrite window.onerror in production (#5135) --- packages/editor-ui/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/main.ts b/packages/editor-ui/src/main.ts index 868c64550..fec0a3605 100644 --- a/packages/editor-ui/src/main.ts +++ b/packages/editor-ui/src/main.ts @@ -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) => {