From 6106f7d6cac99b16ba3952e080473509e349d29a Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 6 Jan 2017 14:14:13 +0100 Subject: [PATCH] Make sure we never create the file store object twice --- customize.dist/fsStore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/customize.dist/fsStore.js b/customize.dist/fsStore.js index 6b68f831d..db94393a9 100644 --- a/customize.dist/fsStore.js +++ b/customize.dist/fsStore.js @@ -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 = {