From 838a57d9819258f03a70d055a57a79be341c0cff Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 27 Nov 2021 17:41:53 +0100 Subject: [PATCH] [Debug] Reduce debug logs --- src/serviceWorker/pushNotification.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serviceWorker/pushNotification.ts b/src/serviceWorker/pushNotification.ts index 52ac0dfb..6ca1423d 100644 --- a/src/serviceWorker/pushNotification.ts +++ b/src/serviceWorker/pushNotification.ts @@ -1,4 +1,4 @@ -import { APP_NAME, DEBUG } from '../config'; +import { APP_NAME, DEBUG, DEBUG_MORE } from '../config'; declare const self: ServiceWorkerGlobalScope; @@ -225,7 +225,7 @@ export function handleNotificationClick(e: NotificationEvent) { } export function handleClientMessage(e: ExtendableMessageEvent) { - if (DEBUG) { + if (DEBUG_MORE) { // eslint-disable-next-line no-console console.log('[SW] New message from client', e); }