Publish and My Files fixes #38

Merged
alexliebowitz merged 4 commits from publish-and-file-fixes into rewards 2017-04-13 20:48:04 +02:00
Showing only changes of commit e301788b27 - Show all commits

View file

@ -243,6 +243,10 @@ lbry.getCostInfo = function(lbryUri, callback, errorCallback) {
* - includes_data: Boolean; indicates whether or not the data fee info
* from Lighthouse is included.
*/
if (!lbryUri) {
throw new Error(`URI required.`);
}
function getCostWithData(name, size, callback, errorCallback) {
lbry.stream_cost_estimate({name, size}).then((cost) => {
callback({