diff --git a/js/component/link.js b/js/component/link.js index 3d4b54f6c..28f348d24 100644 --- a/js/component/link.js +++ b/js/component/link.js @@ -251,7 +251,7 @@ export let DownloadLink = React.createClass({ if (this.props.state == 'not-started') { this.tryDownload(); } else if (this.props.state == 'done') { - lbry.revealFile(this.props.path); + lbry.openFile(this.props.path); } }, render: function() { diff --git a/js/lbry.js b/js/lbry.js index 9563d4195..c53b00f28 100644 --- a/js/lbry.js +++ b/js/lbry.js @@ -272,8 +272,12 @@ lbry.deleteFile = function(name, deleteTargetFile=true, callback) { }, callback); } +lbry.openFile = function(path, callback) { + lbry.call('open_file', {path: path}, callback); +} + lbry.revealFile = function(path, callback) { - lbry.call('reveal', { path: path }, callback); + lbry.call('reveal', {path: path}, callback); } lbry.getFileInfoWhenListed = function(name, callback, timeoutCallback, tryNum=0) {