Use the correct hash when opening the todo app for the first time

pull/1/head
yflory 7 years ago
parent 3188ea3f35
commit 92a8e107d7

@ -40,7 +40,7 @@ define([
Cryptpad.getTodoHash(function (hash) { Cryptpad.getTodoHash(function (hash) {
var nHash = hash || Utils.Hash.createRandomHash(); var nHash = hash || Utils.Hash.createRandomHash();
if (!hash) { Cryptpad.setTodoHash(nHash); } if (!hash) { Cryptpad.setTodoHash(nHash); }
cb(null, Utils.Hash.getSecrets('todo', hash)); cb(null, Utils.Hash.getSecrets('todo', nHash));
}); });
}; };
SFCommonO.start({ SFCommonO.start({

Loading…
Cancel
Save