From 46fcd066219856d4c75872e57d711e6816eeff64 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 18 Jun 2020 01:40:17 +1200 Subject: [PATCH] Remove unneeded code from watch-video-info --- .../watch-video-info/watch-video-info.js | 59 ------------------- 1 file changed, 59 deletions(-) diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index 4adc31dc..8ca4b80a 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -71,19 +71,6 @@ export default Vue.extend({ 'dash', 'legacy', 'audio' - ], - shareLabel: 'SHARE VIDEO', - shareNames: [ - 'COPY INVIDIOUS LINK', - 'OPEN INVIDIOUS LINK', - 'COPY YOUTUBE LINK', - 'OPEN YOUTUBE LINK' - ], - shareValues: [ - 'copyInvidious', - 'openInvidious', - 'copyYoutube', - 'openYoutube' ] } }, @@ -96,18 +83,6 @@ export default Vue.extend({ return this.$store.getters.getUsingElectron }, - invidiousUrl: function () { - return `${this.invidiousInstance}/watch?v=${this.id}` - }, - - youtubeUrl: function () { - return `https://www.youtube.com/watch?v=${this.id}` - }, - - youtubeEmbedUrl: function () { - return `https://www.youtube-nocookie.com/embed/${this.id}` - }, - totalLikeCount: function () { return this.likeCount + this.dislikeCount }, @@ -145,40 +120,6 @@ export default Vue.extend({ this.$parent.enableAudioFormat() break } - }, - - handleShare: function (method) { - console.log('Handling share') - - switch (method) { - case 'copyYoutube': - navigator.clipboard.writeText(this.youtubeUrl) - break - case 'openYoutube': - if (this.usingElectron) { - const shell = require('electron').shell - shell.openExternal(this.youtubeUrl) - } - break - case 'copyYoutubeEmbed': - navigator.clipboard.writeText(this.youtubeEmbedUrl) - break - case 'openYoutubeEmbed': - if (this.usingElectron) { - const shell = require('electron').shell - shell.openExternal(this.youtubeEmbedUrl) - } - break - case 'copyInvidious': - navigator.clipboard.writeText(this.invidiousUrl) - break - case 'openInvidious': - if (this.usingElectron) { - const shell = require('electron').shell - shell.openExternal(this.invidiousUrl) - } - break - } } } })