Implementing downloadMedia in web environments (#2602)
This commit is contained in:
parent
60166eb6b2
commit
c4722c9533
|
@ -209,7 +209,7 @@ const actions = {
|
||||||
const ipcRenderer = require('electron').ipcRenderer
|
const ipcRenderer = require('electron').ipcRenderer
|
||||||
ipcRenderer.send(IpcChannels.OPEN_EXTERNAL_LINK, url)
|
ipcRenderer.send(IpcChannels.OPEN_EXTERNAL_LINK, url)
|
||||||
} else {
|
} else {
|
||||||
// Web placeholder
|
window.open(url, '_blank')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ const actions = {
|
||||||
let folderPath = rootState.settings.downloadFolderPath
|
let folderPath = rootState.settings.downloadFolderPath
|
||||||
|
|
||||||
if (!process.env.IS_ELECTRON) {
|
if (!process.env.IS_ELECTRON) {
|
||||||
// Add logic here in the future
|
dispatch('openExternalLink', url)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue