[Debug] Reduce debug logs

This commit is contained in:
Alexander Zinchuk 2021-11-27 17:41:53 +01:00
parent 7e7eabdc42
commit 838a57d981

View File

@ -1,4 +1,4 @@
import { APP_NAME, DEBUG } from '../config'; import { APP_NAME, DEBUG, DEBUG_MORE } from '../config';
declare const self: ServiceWorkerGlobalScope; declare const self: ServiceWorkerGlobalScope;
@ -225,7 +225,7 @@ export function handleNotificationClick(e: NotificationEvent) {
} }
export function handleClientMessage(e: ExtendableMessageEvent) { export function handleClientMessage(e: ExtendableMessageEvent) {
if (DEBUG) { if (DEBUG_MORE) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log('[SW] New message from client', e); console.log('[SW] New message from client', e);
} }