added more button actions
This commit is contained in:
3
sw.js
3
sw.js
@@ -184,7 +184,8 @@ self.addEventListener('push', event => {
|
||||
const messagePayload = {
|
||||
type: 'flic-action', // Custom message type
|
||||
action: pushData.data.action, // e.g., 'SingleClick', 'DoubleClick', 'Hold'
|
||||
button: pushData.data.button // e.g., the button serial
|
||||
button: pushData.data.button, // e.g., the button name
|
||||
timestamp: pushData.data.timestamp // e.g., the timestamp of the action
|
||||
};
|
||||
|
||||
// Send message to all open PWA windows controlled by this SW
|
||||
|
||||
Reference in New Issue
Block a user