upd: view.vue-config (removed global sendMessage())

This commit is contained in:
xdrm-brackets 2017-12-07 20:17:50 +01:00
parent 62b353eea9
commit 602d72f361
1 changed files with 1 additions and 13 deletions

View File

@ -73,19 +73,7 @@ gstore.add('func', {
gstore.data.notif[id].count = 0; gstore.data.notif[id].count = 0;
}, },
toggleMenuSize: function(){ gstore.data.min_menu=!gstore.data.min_menu; }, 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;
}
}); });