diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 04a04401d..1b3c346bd 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -328,6 +328,15 @@ define([ typeof(proxy.curvePublic) === 'string'; }; + common.getPublicKeys = function (proxy) { + proxy = proxy || common.getProxy(); + if (!proxy || !proxy.edPublic || !proxy.curvePublic) { return; } + return { + curve: proxy.curvePublic, + ed: proxy.edPublic, + }; + }; + common.isArray = $.isArray; /*