acable test
This commit is contained in:
@@ -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')){
|
||||
|
||||
Reference in New Issue
Block a user