update print event action
This commit is contained in:
parent
97ee7dc6cd
commit
593c017a08
@ -76,12 +76,11 @@ if (router !== null) {
|
||||
|
||||
// listen print event
|
||||
localEvent.on('print', str => {
|
||||
|
||||
Printer.addCount()
|
||||
Printer.lastPrint = str
|
||||
})
|
||||
|
||||
ws.on('connection', async (client, req) => {
|
||||
console.log(`client conneected`)
|
||||
|
||||
let json = {
|
||||
ble: {
|
||||
enable: false,
|
||||
@ -126,8 +125,6 @@ ws.on('connection', async (client, req) => {
|
||||
client.send(JSON.stringify({ type: 'status', data: json }))
|
||||
break
|
||||
}
|
||||
|
||||
console.log(`get msg >> ${msg}`)
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user