From 95789d3cbe5463f014fa4dee105d78626f201507 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 14 Apr 2017 11:41:51 +0200 Subject: [PATCH] expose rpc for pinned usage --- www/common/cryptpad-common.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index dc903777c..9218c0022 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -735,6 +735,11 @@ load pinpad dynamically only after you know that it will be needed */ }); }; + var getPinnedUsage = common.getPinnedUsage = function (cb) { + if (!pinsReady()) { return void cb('[RPC_NOT_READY]'); } + rpc.getFileListSize(cb); + }; + var createButton = common.createButton = function (type, rightside, data, callback) { var button; var size = "17px";