[Debug] Reduce debug logs
This commit is contained in:
parent
7e7eabdc42
commit
838a57d981
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user