diff --git a/models/dats.js b/models/dats.js index 8e9b0f34..5805bc07 100644 --- a/models/dats.js +++ b/models/dats.js @@ -101,11 +101,9 @@ function datsModel (state, bus) { bus.on('dats:clone', function ({ key, location }) { cloneDat({ key, location }) }) + ipc.on('link', function (event, url) { - cloneDat({ - key: url, - location: downloadsDir - }) + bus.emit('dats:download', url) }) function cloneDat ({ key: _key, location }) {