From 6e5c425d6b9964363c217d7a90e6753558d36be3 Mon Sep 17 00:00:00 2001 From: Vladislav Makhov Date: Tue, 3 Nov 2020 11:07:00 +0300 Subject: [PATCH] Add method --- web/ASC.Web.Common/src/desktop/index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/web/ASC.Web.Common/src/desktop/index.js b/web/ASC.Web.Common/src/desktop/index.js index 2cf49ec965..72ccd14b6c 100644 --- a/web/ASC.Web.Common/src/desktop/index.js +++ b/web/ASC.Web.Common/src/desktop/index.js @@ -46,4 +46,24 @@ export class Desktop { static encryptionUploadDialog() { return {}; } + + static cloudCryptoCommand() { + const cryptoCommand = (window.cloudCryptoCommand = ( + type, + params, + callback + ) => { + switch (type) { + case "encryptionKeys": + return this.setEncryptionKeys(); + case "relogin": + return {}; + case "getsharingkeys": + return {}; + default: + return; + } + }); + return cryptoCommand; + } }