mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-03 01:09:01 +09:00
[Client] Fix bug
This commit is contained in:
parent
2d9dd2ea30
commit
c297b491d9
@ -20,9 +20,9 @@ module.exports = me => {
|
||||
|
||||
socket.onmessage = message => {
|
||||
try {
|
||||
const message = JSON.parse(message.data);
|
||||
if (message.type) {
|
||||
event.trigger(message.type, message.body);
|
||||
const msg = JSON.parse(message.data);
|
||||
if (msg.type) {
|
||||
event.trigger(msg.type, msg.body);
|
||||
}
|
||||
} catch (e) {
|
||||
// noop
|
||||
|
Loading…
Reference in New Issue
Block a user