From 78324ff775349b78ad52066d49e864b409cb3b0f Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Wed, 21 Apr 2021 02:02:09 +0100 Subject: [PATCH] Handle other url types from freetube:// protocol Closes: #1207 The app was mistakenly only set up to handle video type urls from the freetube:// protocol. It should now be able to additionally handle playlist, search and channel type as well. --- src/renderer/App.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/renderer/App.js b/src/renderer/App.js index b7147b99..b036bc90 100644 --- a/src/renderer/App.js +++ b/src/renderer/App.js @@ -404,14 +404,7 @@ export default Vue.extend({ const v = this electron.ipcRenderer.on('openUrl', function (event, url) { if (url) { - v.$store.dispatch('getVideoParamsFromUrl', url).then(({ videoId, timestamp }) => { - if (videoId) { - v.$router.push({ - path: `/watch/${videoId}`, - query: timestamp ? { timestamp } : {} - }) - } - }) + v.handleYoutubeLink(url) } })