From dbfb7e2545c1d9279ceee14f678505ca2f676be3 Mon Sep 17 00:00:00 2001 From: 1aerostorm Date: Wed, 13 Dec 2023 22:49:35 +0000 Subject: [PATCH] Fix WebSocket --- app/utils/NotifyApiClient.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/utils/NotifyApiClient.js b/app/utils/NotifyApiClient.js index 67854096..0a6649f2 100644 --- a/app/utils/NotifyApiClient.js +++ b/app/utils/NotifyApiClient.js @@ -62,7 +62,9 @@ async function connectNotifyWs() { }) notifyWs.addEventListener('message', (msg) => { - console.log('notifyWs message:', msg) + if (window._notifyDebug) { + console.log('notifyWs message:', msg) + } const data = JSON.parse(msg.data) const id = data.id const request = window.notifyWsReq.requests[id]