mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-25 18:52:11 +00:00
Merge branch 'master' into tab
add favicon
This commit is contained in:
@@ -16,10 +16,12 @@ let pcPeers = {}; // peer connection
|
||||
let localstream;
|
||||
|
||||
window.onload = () => {
|
||||
currentUser = document.getElementById("current-user").innerHTML;
|
||||
console.log(currentUser)
|
||||
localVideo = document.getElementById("local-video");
|
||||
remoteVideoContainer = document.getElementById("remote-video-container");
|
||||
if (document.getElementById("current-user")) {
|
||||
currentUser = document.getElementById("current-user").innerHTML;
|
||||
console.log(currentUser)
|
||||
localVideo = document.getElementById("local-video");
|
||||
remoteVideoContainer = document.getElementById("remote-video-container");
|
||||
}
|
||||
};
|
||||
|
||||
// Ice Credentials
|
||||
@@ -35,8 +37,10 @@ document.onreadystatechange = async () => {
|
||||
})
|
||||
|
||||
localstream = stream;
|
||||
localVideo.srcObject = stream
|
||||
localVideo.muted = true
|
||||
if (localVideo) {
|
||||
localVideo.srcObject = stream
|
||||
localVideo.muted = true
|
||||
}
|
||||
} catch (e) { console.error(e); }
|
||||
}
|
||||
};
|
||||
@@ -67,7 +71,11 @@ document.onreadystatechange = async () => {
|
||||
// }
|
||||
// });
|
||||
// };
|
||||
const chatroomId = document.getElementById('chatroom-hook').dataset["chatroomId"]
|
||||
|
||||
if (document.getElementById('chatroom-hook')) {
|
||||
const chatroomId = document.getElementById('chatroom-hook').dataset["chatroomId"]
|
||||
|
||||
}
|
||||
|
||||
const handleJoinSession = async () => {
|
||||
App['chatroom' + chatroomId] = await App.cable.subscriptions.create({
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
@import "show";
|
||||
@import "edit";
|
||||
@import "setting";
|
||||
|
||||
0
app/assets/stylesheets/users/_setting.scss
Normal file
0
app/assets/stylesheets/users/_setting.scss
Normal file
@@ -34,6 +34,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
color: #f2321f;
|
||||
h1 {
|
||||
margin: 0 0 .5em 0 ;
|
||||
}
|
||||
@@ -49,3 +50,4 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user