Fix an issue when deleting a key from the proxy

This commit is contained in:
yflory
2016-12-16 11:27:59 +01:00
parent 82f3d5f852
commit d95a3ac92e
4 changed files with 25 additions and 12 deletions

View File

@@ -143,7 +143,7 @@ define([
});
}).on('ready', function () {
if (JSON.stringify(rt.proxy) === '{}') {
if (!rt.proxy[Cryptpad.storageKey] || !Cryptpad.isArray(rt.proxy[Cryptpad.storageKey])) {
var oldStore = Cryptpad.getStore(true);
oldStore.get(Cryptpad.storageKey, function (err, s) {
rt.proxy.filesData = s;