diff --git a/bower.json b/bower.json index f9a3dc5be..82a9931ea 100644 --- a/bower.json +++ b/bower.json @@ -41,7 +41,7 @@ "diff-dom": "2.1.1", "nthen": "0.1.7", "open-sans-fontface": "^1.4.2", - "bootstrap-tokenfield": "^0.12.1", + "bootstrap-tokenfield": "0.12.1", "localforage": "^1.5.2", "html2canvas": "^0.4.1", "croppie": "^2.5.0", 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();