mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix channel cache
This commit is contained in:
parent
beab767016
commit
e656a67c16
@ -94,7 +94,7 @@ define([
|
||||
S.storeCache = function (id, validateKey, val, cb) {
|
||||
cb = Util.once(Util.mkAsync(cb || function () {}));
|
||||
|
||||
onReady.reg(function (allowed) {
|
||||
onReady.reg(function () {
|
||||
if (!allowed) { return void cb('NOCACHE'); }
|
||||
if (!Array.isArray(val) || !validateKey) { return void cb('EINVAL'); }
|
||||
checkCheckpoints(val);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user