button battery level warning
This commit is contained in:
4
app.js
4
app.js
@@ -356,8 +356,8 @@ function setupServiceWorker() {
|
||||
function handleServiceWorkerMessage(event) {
|
||||
console.log('[App] Message received from Service Worker:', event.data);
|
||||
if (event.data?.type === 'flic-action') {
|
||||
const { action, button, timestamp } = event.data;
|
||||
pushFlic.handleFlicAction(action, button, timestamp);
|
||||
const { action, button, timestamp, batteryLevel } = event.data;
|
||||
pushFlic.handleFlicAction(action, button, timestamp, batteryLevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user