From e12de3215f5643f52a2fa29839517c745938fd65 Mon Sep 17 00:00:00 2001 From: Ginger Wong Date: Sat, 18 Jul 2020 17:17:10 -0700 Subject: [PATCH] cleanup --- webroot/js/app.js | 1 - webroot/js/message.js | 26 +------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/webroot/js/app.js b/webroot/js/app.js index 9bc6df945..3bde2eef5 100644 --- a/webroot/js/app.js +++ b/webroot/js/app.js @@ -46,7 +46,6 @@ class Owncast { el: '#app-container', data: { isOnline: false, - // layout: hasTouchScreen() ? 'touch' : 'desktop', messages: [], overallMaxViewerCount: 0, sessionMaxViewerCount: 0, diff --git a/webroot/js/message.js b/webroot/js/message.js index 23b4a9ac3..00ee65224 100644 --- a/webroot/js/message.js +++ b/webroot/js/message.js @@ -72,15 +72,6 @@ class MessagingInterface { this.btnSubmitMessage.addEventListener('click', this.handleSubmitChatButton.bind(this)); this.initLocalStates(); - - // if (hasTouchScreen()) { - // this.scrollableMessagesContainer = document.body; - // this.tagAppContainer.classList.add('touch-screen'); - // window.onorientationchange = this.handleOrientationChange.bind(this); - // this.handleOrientationChange(); - // } else { - // this.tagAppContainer.classList.add('desktop'); - // } } setWebsocket(socket) { @@ -113,22 +104,7 @@ class MessagingInterface { this.tagAppContainer.classList.remove('chat'); } } -/* - handleOrientationChange() { - var isPortrait = Math.abs(window.orientation % 180) === 0; - if(!isPortrait) { - if (document.body.clientWidth < 1024) { - this.tagAppContainer.classList.add('no-chat'); - this.tagAppContainer.classList.add('landscape'); - } - } else { - if (this.chatDisplayed) { - this.tagAppContainer.classList.remove('no-chat'); - } - this.tagAppContainer.classList.remove('landscape'); - } - } - */ + handleChatToggle() { this.chatDisplayed = !this.chatDisplayed;