Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix dat:// links not opening download screen. closes #409
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed May 31, 2017
1 parent fba1ab4 commit 05f8109
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions models/dats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down

0 comments on commit 05f8109

Please sign in to comment.