more clean up and fixins
This commit is contained in:
@@ -12,6 +12,8 @@ function setupApp() {
|
||||
data: {
|
||||
streamStatus: "",
|
||||
viewerCount: 0,
|
||||
sessionMaxViewerCount: 0,
|
||||
overallMaxViewerCount: 0,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -22,27 +24,6 @@ function setupApp() {
|
||||
}
|
||||
})
|
||||
|
||||
// window.chatForm = new Vue({
|
||||
// el: "#chatForm",
|
||||
// data: {
|
||||
// message: {
|
||||
// author: "",//localStorage.author || "Viewer" + (Math.floor(Math.random() * 42) + 1),
|
||||
// body: ""
|
||||
// }
|
||||
// },
|
||||
// methods: {
|
||||
// submitChatForm: function (e) {
|
||||
// const message = new Message(this.message);
|
||||
// message.id = uuidv4();
|
||||
// localStorage.author = message.author;
|
||||
// const messageJSON = JSON.stringify(message);
|
||||
// window.ws.send(messageJSON);
|
||||
// e.preventDefault();
|
||||
|
||||
// this.message.body = "";
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
||||
window.VIDEOJS_NO_DYNAMIC_STYLE = true;
|
||||
var appMessagingMisc = new Messaging();
|
||||
@@ -59,9 +40,9 @@ async function getStatus() {
|
||||
? "Stream is online."
|
||||
: "Stream is offline."
|
||||
|
||||
app.viewerCount = status.viewerCount
|
||||
app.sessionMaxViewerCount = status.sessionMaxViewerCount
|
||||
app.overallMaxViewerCount = status.overallMaxViewerCount
|
||||
app.viewerCount = status.viewerCount;
|
||||
app.sessionMaxViewerCount = status.sessionMaxViewerCount;
|
||||
app.overallMaxViewerCount = status.overallMaxViewerCount;
|
||||
|
||||
} catch (e) {
|
||||
app.streamStatus = "Stream server is offline."
|
||||
@@ -87,7 +68,7 @@ function setupWebsocket() {
|
||||
|
||||
if (existing.length === 0 || !existing) {
|
||||
this.messagesContainer.messages.push(message);
|
||||
setTimeout(() => { jumpToBottom("#messages-container"); } , 10); // could be better. is there a sort of Vue "componentDidUpdate" we can do this on?
|
||||
setTimeout(() => { jumpToBottom("#messages-container"); } , 50); // could be better. is there a sort of Vue "componentDidUpdate" we can do this on?
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user