From 05f81099513698c83713a1fcf25a5b91e303b0d3 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Wed, 31 May 2017 09:30:58 +0200 Subject: [PATCH] fix dat:// links not opening download screen. closes #409 --- models/dats.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 }) {