mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 12:55:11 +01:00
[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) {
|
||||
if (DEBUG) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('[SW] New message from client', e);
|
||||
}
|
||||
if (!e.data) return;
|
||||
const source = e.source as WindowClient;
|
||||
if (e.data.type === 'clientReady') {
|
||||
|
@ -13,10 +13,6 @@ type WorkerAction = {
|
||||
|
||||
function handleWorkerMessage(e: MessageEvent) {
|
||||
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;
|
||||
const dispatch = getDispatch();
|
||||
switch (action.type) {
|
||||
|
Loading…
Reference in New Issue
Block a user