added polyglot.live to request origins and commented out unnecessary information on chatroom show page

This commit is contained in:
Beatrice Olivera
2018-08-31 06:02:24 +01:00
parent f911f91da5
commit c264c98444
2 changed files with 11 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
<button onclick="handleJoinSession()" data-room="<%= @chat_room.id %>">Join Room</button>
<h1 style="color: white;">This is chatroom #<%= @chat_room.id %></h1>
<!-- <div id="join-session" data-room="<%= @chat_room.id %>"> -->
<!-- <h1 style="color: white;">This is chatroom #<%= @chat_room.id %></h1> -->
<div id="chatroom-hook" data-chatroom-id='<%= @chat_room.id %>'></div>
<button id="test-btn">Test Connection</button>
<!-- <button id="test-btn">Test Connection</button> -->
<div class="call-container">
<div id="remote-video-container">
<div id="video_overlays">
@@ -13,9 +13,15 @@
</div>
<div>
<span class="text-color" style="display:none">Random User ID:</span>
<span id="current-user" class="text-color" style="display:none"><%= current_user.id %></span>
</div>
<!-- <script>
const joinSession = document.getElementById("join-session")
joinSession.addEventListener('load', event => {
handleJoinSession()
})
</script> -->
<%= javascript_pack_tag 'chatrooms' %>