From f09dd20d2b9f0560f2e64265a2e4a9a310de3d5f Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 25 Nov 2025 15:04:13 +0100 Subject: [PATCH] Removed debugging console log --- assets/controllers/notification_controller.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/assets/controllers/notification_controller.js b/assets/controllers/notification_controller.js index 14ba3f9..65df6df 100644 --- a/assets/controllers/notification_controller.js +++ b/assets/controllers/notification_controller.js @@ -78,18 +78,16 @@ export default class extends Controller { // If closed, log it for debugging. try { if (this.eventSource.readyState === EventSource.CLOSED) { - console.log('Connection closed. Will retry...'); + console.log(); } else if (this.eventSource.readyState === EventSource.CONNECTING) { - console.log('Connection is reconnecting (CONNECTING).'); + console.log(); } else if (this.eventSource.readyState === EventSource.OPEN) { - console.log('Connection is open (OPEN).'); + console.log(); } } catch (e) { console.error('Error while checking EventSource state:', e); } }; - - console.log('EventSource connected to:', url.toString()); } catch (error) { console.error('Failed to connect to Mercure:', error); }