From 0414bdb21728b448f7b6da12df01b912be2e48e1 Mon Sep 17 00:00:00 2001 From: cpu Date: Fri, 28 Mar 2025 06:26:06 +0100 Subject: [PATCH] fix flic handler functions --- pushFlicIntegration.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pushFlicIntegration.js b/pushFlicIntegration.js index 63497d1..93e786d 100644 --- a/pushFlicIntegration.js +++ b/pushFlicIntegration.js @@ -166,16 +166,7 @@ export function handleFlicAction(action, buttonId, timestamp) { if (handler && typeof handler === 'function') { console.log(`[PushFlic] Executing handler for ${action}`); // Execute the handler registered in app.js - switch(action) { - case FLIC_ACTIONS.SINGLE_CLICK: - nextPlayer(); - break; - case FLIC_ACTIONS.DOUBLE_CLICK: - previousPlayer(); - break; - case FLIC_ACTIONS.HOLD: - togglePauseResume(); - } + handler(); // Use the handler function directly instead of hardcoded function calls } else { console.warn(`[PushFlic] No handler registered for action: ${action}`); }