mirror of https://github.com/xwiki-labs/cryptpad
Make document.key optional
This commit is contained in:
parent
af8f7e5865
commit
f28e4cfdb1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue