From d59c5c2a1cbf6ddd56abd9af40570c6e8332fe8b Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Fri, 9 Dec 2016 04:57:13 -0500 Subject: [PATCH] Add lbry.getSizeForName() --- js/lighthouse.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/lighthouse.js b/js/lighthouse.js index 588b924c8..0c5d6934a 100644 --- a/js/lighthouse.js +++ b/js/lighthouse.js @@ -36,6 +36,10 @@ var lighthouse = { } lighthouse.call('search', [query], callback, errorCallback, function() { handleSearchFailed() }, lighthouse._search_timeout); + }, + + getSizeForName: function(name, callback, errorCallback, connectFailedCallback, timeout) { + return lighthouse.call('get_size_for_name', [name], callback, errorCallback, connectFailedCallback, timeout); } };