Fix cache and storage issues in share and filepicker iframes

This commit is contained in:
yflory
2020-01-13 17:06:49 +01:00
parent 73af078e4a
commit d02092eb76
3 changed files with 19 additions and 4 deletions

View File

@@ -81,8 +81,8 @@ define([
});
localStorage.CRYPTPAD_URLARGS = ApiConfig.requireConf.urlArgs;
}
var cache = {};
var localStore = {};
var cache = window.cpCache = {};
var localStore = window.localStore = {};
Object.keys(localStorage).forEach(function (k) {
if (k.indexOf('CRYPTPAD_CACHE|') === 0) {
cache[k.slice(('CRYPTPAD_CACHE|').length)] = localStorage[k];