diff --git a/src/renderer/components/watch-video-description/watch-video-description.js b/src/renderer/components/watch-video-description/watch-video-description.js index e7a2eccbc..f028e8c26 100644 --- a/src/renderer/components/watch-video-description/watch-video-description.js +++ b/src/renderer/components/watch-video-description/watch-video-description.js @@ -2,6 +2,7 @@ import Vue from 'vue' import FtCard from '../ft-card/ft-card.vue' import FtTimestampCatcher from '../ft-timestamp-catcher/ft-timestamp-catcher.vue' import autolinker from 'autolinker' +import $ from 'jquery' export default Vue.extend({ name: 'WatchVideoDescription', @@ -34,6 +35,10 @@ export default Vue.extend({ } else { this.shownDescription = autolinker.link(this.description) } + + if (/^\s*$/.test(this.shownDescription)) { + $('.videoDescription')[0].style.display = 'none' + } }, methods: { onTimestamp: function(timestamp) {