fix(editor): Do not overwrite window.onerror in production (#5135)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-11 22:22:12 +01:00
committed by GitHub
parent a9fb393e1a
commit 0dbba6d57f

View File

@@ -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) => {