From 602d72f361ae45bd4eec0ec0ef3e8269825807c3 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 7 Dec 2017 20:17:50 +0100 Subject: [PATCH] upd: view.vue-config (removed global sendMessage()) --- view/vue-config.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/view/vue-config.js b/view/vue-config.js index 511a917..a32fc61 100644 --- a/view/vue-config.js +++ b/view/vue-config.js @@ -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; } });