Make sure we never create the file store object twice

pull/1/head
yflory 8 years ago
parent 1e70af0c16
commit 6106f7d6ca

@ -133,8 +133,11 @@ define([
}
};
var initialized = false;
var init = function (f, Cryptpad) {
if (!Cryptpad) { return; }
if (!Cryptpad || initialized) { return; }
initialized = true;
var hash = Cryptpad.getUserHash() || localStorage.FS_hash;
var secret = Cryptpad.getSecrets(hash);
var listmapConfig = {

Loading…
Cancel
Save