From 8043e3d6225c3c60fb76a0c7e2194ffbb5c797b0 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 19 Apr 2021 17:21:57 +0200 Subject: [PATCH] Fix drive stuck offline because of a restricted shared folder --- www/common/outer/cache-store.js | 2 +- www/common/outer/sharedfolder.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/outer/cache-store.js b/www/common/outer/cache-store.js index 45f334bb4..884d98914 100644 --- a/www/common/outer/cache-store.js +++ b/www/common/outer/cache-store.js @@ -2,7 +2,7 @@ define([ '/common/common-util.js', '/bower_components/localforage/dist/localforage.min.js', ], function (Util, localForage) { - var S = {}; + var S = window.CryptPad_Cache = {}; var onReady = Util.mkEvent(true); // Check if indexedDB is allowed diff --git a/www/common/outer/sharedfolder.js b/www/common/outer/sharedfolder.js index 3bc39546c..6735330b4 100644 --- a/www/common/outer/sharedfolder.js +++ b/www/common/outer/sharedfolder.js @@ -249,6 +249,7 @@ define([ if (obj.store.handleSharedFolder) { obj.store.handleSharedFolder(obj.id, null); } + obj.cb(); }); } catch (e) {} delete allSharedFolders[secret.channel]; @@ -260,6 +261,7 @@ define([ if (info.error === "ERESTRICTED" ) { sf.teams.forEach(function (obj) { obj.store.manager.restrictedProxy(obj.id, secret.channel); + obj.cb(); }); delete allSharedFolders[secret.channel]; return void cb();