Implementing downloadMedia in web environments (#2602)

This commit is contained in:
Emma 2022-09-21 02:00:34 -04:00 committed by GitHub
parent 60166eb6b2
commit c4722c9533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
}