From ba1ad69181c1415c835e335292d6be8161a4a647 Mon Sep 17 00:00:00 2001 From: Yan Date: Fri, 18 May 2018 14:58:51 +0630 Subject: [PATCH] acable test --- app/assets/javascripts/channels/bill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/channels/bill.js b/app/assets/javascripts/channels/bill.js index b6915b53..ad500d4a 100755 --- a/app/assets/javascripts/channels/bill.js +++ b/app/assets/javascripts/channels/bill.js @@ -6,8 +6,8 @@ App.order = App.cable.subscriptions.create('BillChannel', { disconnected: function() {}, received: function(data) { - var hostname = location.hostname; - console.log(hostname + "\n" + data.from); + var hostname = location.hostname.strip; + console.log(hostname==data.from); if(data.from == "" || hostname == data.from) { if($('.table_'+data.table.id).hasClass('blue')){