diff --git a/src/views/ClipView.vue b/src/views/ClipView.vue index a954c91..13f0cb4 100644 --- a/src/views/ClipView.vue +++ b/src/views/ClipView.vue @@ -11,7 +11,6 @@ import ShareModal from '@/components/popups/ShareButtonModal.vue' import type { Video } from '@/types' import { truncate, abbreviate, getEndpoint } from '@/mixins' -import { chatVisible } from '@/settingsManager' export default { inject: ['rootBackendUrl'], @@ -75,7 +74,6 @@ export default { methods: { truncate, abbreviate, - chatVisible, toggleShareModal() { this.shareModalVisible = !this.shareModalVisible } diff --git a/src/views/UserView.vue b/src/views/UserView.vue index 5fe4042..d9cb171 100644 --- a/src/views/UserView.vue +++ b/src/views/UserView.vue @@ -14,7 +14,7 @@ import ShareModal from '@/components/popups/ShareButtonModal.vue' import type { StreamerData } from '@/types' import { truncate, abbreviate, getEndpoint } from '@/mixins' -import { chatVisible, getSetting } from '@/settingsManager' +import { getSetting } from '@/settingsManager' export default { inject: ['rootBackendUrl'], @@ -76,7 +76,6 @@ export default { methods: { truncate, abbreviate, - chatVisible, getSetting, toggleShareModal() { this.shareModalVisible = !this.shareModalVisible @@ -194,7 +193,7 @@ export default { void @@ -67,12 +67,11 @@ export default { truncate, abbreviate, handlePlayerTimeUpdate(time: number) { - if (!chatVisible()) return + if (!getSetting("chatVisible")) return const chat = this.$refs.chat as ChatComponent this.time = time chat.updateVodComments(time) }, - chatVisible, getSetting, toggleShareModal() { this.shareModalVisible = !this.shareModalVisible