upd: view.vue-config (removed global sendMessage())
This commit is contained in:
parent
62b353eea9
commit
602d72f361
|
@ -73,19 +73,7 @@ gstore.add('func', {
|
|||
gstore.data.notif[id].count = 0;
|
||||
|
||||
},
|
||||
toggleMenuSize: function(){ gstore.data.min_menu=!gstore.data.min_menu; },
|
||||
sendMessage: function(msg, wsc){
|
||||
|
||||
/* (1) If empty message -> abort */
|
||||
if( msg.trim().length == 0 )
|
||||
return;
|
||||
|
||||
/* (2) Send message to WebSocket */
|
||||
wsc.send(JSON.stringify({message: msg}));
|
||||
|
||||
/* (3) Add loader */
|
||||
gstore.data.msg_pending.inbox = true;
|
||||
}
|
||||
toggleMenuSize: function(){ gstore.data.min_menu=!gstore.data.min_menu; }
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue