From f28e4cfdb16307f062791adfb1d0e15f971a0f34 Mon Sep 17 00:00:00 2001 From: Wolfgang Ginolas Date: Fri, 27 Jan 2023 10:24:35 +0100 Subject: [PATCH] Make document.key optional --- www/cryptpad-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/cryptpad-api.js b/www/cryptpad-api.js index 6017b4007..6292a58e5 100644 --- a/www/cryptpad-api.js +++ b/www/cryptpad-api.js @@ -196,7 +196,7 @@ } if (!config) { return reject('Missing args: no data provided'); } - if(['document.url', 'document.fileType', 'document.key', 'documentType', + if(['document.url', 'document.fileType', 'documentType', 'events.onSave', 'events.onNewKey'].some(function (k) { var s = k.split('.'); var c = config;