temporarily disable the document cache, wait to clear it before redirecting to login

pull/1/head
ansuz 4 years ago
parent e56083c809
commit d44f1880a4

@ -1903,12 +1903,12 @@ define([
var requestLogin = function () {
// log out so that you don't go into an endless loop...
LocalStore.logout();
LocalStore.logout(function () {
// redirect them to log in, and come back when they're done.
var href = Hash.hashToHref('', 'login');
var url = Hash.getNewPadURL(href, { href: currentPad.href });
window.location.href = url;
});
};
common.startAccountDeletion = function (data, cb) {

@ -1631,7 +1631,7 @@ define([
Store.leavePad(null, data, function () {});
};
var conf = {
Cache: Cache,
//Cache: Cache, // XXX re-enable cache usage
onCacheStart: function () {
postMessage(clientId, "PAD_CACHE");
},
@ -2686,7 +2686,7 @@ define([
readOnly: false,
validateKey: secret.keys.validateKey || undefined,
crypto: Crypto.createEncryptor(secret.keys),
Cache: Cache,
//Cache: Cache, // XXX re-enable cache usage
userName: 'fs',
logLevel: 1,
ChainPad: ChainPad,

@ -175,7 +175,7 @@ define([
ChainPad: ChainPad,
classic: true,
network: network,
Cache: Cache,
//Cache: Cache, // XXX re-enable cache usage
metadata: {
validateKey: secret.keys.validateKey || undefined,
owners: owners

@ -427,7 +427,7 @@ define([
channel: secret.channel,
crypto: crypto,
ChainPad: ChainPad,
Cache: Cache,
//Cache: Cache, // XXX re-enable cache usage
metadata: {
validateKey: secret.keys.validateKey || undefined,
},

Loading…
Cancel
Save