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() {}, disconnected: function() {},
received: function(data) { received: function(data) {
var hostname = location.hostname; var hostname = location.hostname.strip;
console.log(hostname + "\n" + data.from); console.log(hostname==data.from);
if(data.from == "" || hostname == data.from) if(data.from == "" || hostname == data.from)
{ {
if($('.table_'+data.table.id).hasClass('blue')){ if($('.table_'+data.table.id).hasClass('blue')){