set room name in html

This commit is contained in:
Zachary Chai
2016-11-01 17:18:39 -04:00
parent 7da04d3334
commit 0c4e264d7e
5 changed files with 9 additions and 5 deletions

View File

@ -3,7 +3,7 @@
var initRooms = function() {
App.messages = App.cable.subscriptions.create({
channel: 'ModeratorJoinsChannel',
username: window.location.pathname.split('/').pop()
username: getRoomName()
},
{
received: function(data) {

View File

@ -3,7 +3,7 @@
var initRooms = function() {
App.messages = App.cable.subscriptions.create({
channel: 'RecordingUpdatesChannel',
username: window.location.pathname.split('/').pop()
username: getRoomName()
},
{
received: function(data) {