From c4722c9533a55c745a6a4c7e61cad44e28b824a8 Mon Sep 17 00:00:00 2001 From: Emma Date: Wed, 21 Sep 2022 02:00:34 -0400 Subject: [PATCH] Implementing downloadMedia in web environments (#2602) --- src/renderer/store/modules/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 2165eaa4..7c1b8620 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -209,7 +209,7 @@ const actions = { const ipcRenderer = require('electron').ipcRenderer ipcRenderer.send(IpcChannels.OPEN_EXTERNAL_LINK, url) } else { - // Web placeholder + window.open(url, '_blank') } }, @@ -256,7 +256,7 @@ const actions = { let folderPath = rootState.settings.downloadFolderPath if (!process.env.IS_ELECTRON) { - // Add logic here in the future + dispatch('openExternalLink', url) return }