acable test

This commit is contained in:
Yan
2018-05-18 14:58:51 +06:30
parent b1449d8d35
commit ba1ad69181

View File

@@ -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')){