From 0c3c86ab5549940a284b97a309906275483d38b4 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 24 Dec 2021 01:26:10 +0100 Subject: [PATCH] [Debug] Less default logs --- src/util/setupServiceWorker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/setupServiceWorker.ts b/src/util/setupServiceWorker.ts index 6d78697d9..e2f252daa 100644 --- a/src/util/setupServiceWorker.ts +++ b/src/util/setupServiceWorker.ts @@ -1,4 +1,4 @@ -import { DEBUG } from '../config'; +import { DEBUG, DEBUG_MORE } from '../config'; import { getDispatch } from '../lib/teact/teactn'; import { IS_ANDROID, IS_IOS, IS_SERVICE_WORKER_SUPPORTED } from './environment'; import { notifyClientReady, playNotifySoundDebounced } from './notifications'; @@ -10,7 +10,7 @@ type WorkerAction = { function handleWorkerMessage(e: MessageEvent) { const action: WorkerAction = e.data; - if (DEBUG) { + if (DEBUG_MORE) { // eslint-disable-next-line no-console console.log('[SW] Message from worker', action); }