[Debug] Get rid of some logs
This commit is contained in:
parent
273b980bef
commit
d5db8639eb
@ -147,10 +147,6 @@ export function handleNotificationClick(e: NotificationEvent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function handleClientMessage(e: ExtendableMessageEvent) {
|
export function handleClientMessage(e: ExtendableMessageEvent) {
|
||||||
if (DEBUG) {
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('[SW] New message from client', e);
|
|
||||||
}
|
|
||||||
if (!e.data) return;
|
if (!e.data) return;
|
||||||
const source = e.source as WindowClient;
|
const source = e.source as WindowClient;
|
||||||
if (e.data.type === 'clientReady') {
|
if (e.data.type === 'clientReady') {
|
||||||
|
|||||||
@ -13,10 +13,6 @@ type WorkerAction = {
|
|||||||
|
|
||||||
function handleWorkerMessage(e: MessageEvent) {
|
function handleWorkerMessage(e: MessageEvent) {
|
||||||
const action:WorkerAction = e.data;
|
const action:WorkerAction = e.data;
|
||||||
if (DEBUG) {
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('[SW] New action from service worker', action);
|
|
||||||
}
|
|
||||||
if (!action.type) return;
|
if (!action.type) return;
|
||||||
const dispatch = getDispatch();
|
const dispatch = getDispatch();
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user