Merge branch 'master' into hangup

This commit is contained in:
Beatrice Olivera
2018-09-04 14:53:57 +01:00
committed by GitHub
2 changed files with 8 additions and 7 deletions

View File

@@ -40,13 +40,13 @@ hangUpIcon.addEventListener('click', event => {
})
// Testing ActionCable
// const testBtn = document.getElementById('test-btn')
// testBtn.addEventListener('click', event => {
// fetch(`/chat_rooms/${chatroomId}/cable_testing` , {
// method: 'POST',
// body: JSON.stringify({})
// })
// })
const testBtn = document.getElementById('test-btn')
testBtn.addEventListener('click', event => {
fetch(`/chat_rooms/${chatroomId}/cable_testing` , {
method: 'POST',
body: JSON.stringify({})
})
})