From 5262e5662a46b69e1b973f2b50c03b6c7cc2db09 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 28 May 2020 17:09:52 +0200 Subject: [PATCH] disable sentry in development --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 6eb508d..7742977 100644 --- a/src/index.js +++ b/src/index.js @@ -3,7 +3,7 @@ if(process.env.NODE_ENV === "development") { console.debug("Initializing Preact Debugger...") require("preact/debug"); } -//else if(process.env.NODE_ENV === "production") { +else if(process.env.NODE_ENV === "production") { console.debug("Initializing Sentry...") Sentry = require("@sentry/browser"); let SentryIntegrations = require("@sentry/integrations") @@ -19,7 +19,7 @@ if(process.env.NODE_ENV === "development") { return event; } }); -//} +} // noinspection ES6UnusedImports import _style from './index.less';