pull/1/head
yflory 4 years ago
parent d439599822
commit b108e54ae0

@ -2517,8 +2517,7 @@ define([
} }
if (parsedNew.hashData) { oldHref = newHref; } if (parsedNew.hashData) { oldHref = newHref; }
}; };
// XXX if you're in noDrive mode, check if an FS_hash is added and reload if that's the case // If you're in noDrive mode, check if an FS_hash is added and reload if that's the case
// Listen for login/logout in other tabs
if (rdyCfg.noDrive && !localStorage[Constants.fileHashKey]) { if (rdyCfg.noDrive && !localStorage[Constants.fileHashKey]) {
window.addEventListener('storage', function (e) { window.addEventListener('storage', function (e) {
if (e.key !== Constants.fileHashKey) { return; } if (e.key !== Constants.fileHashKey) { return; }
@ -2536,6 +2535,7 @@ define([
} }
}); });
} }
// Listen for login/logout in other tabs
window.addEventListener('storage', function (e) { window.addEventListener('storage', function (e) {
if (e.key !== Constants.userHashKey) { return; } if (e.key !== Constants.userHashKey) { return; }
var o = e.oldValue; var o = e.oldValue;

Loading…
Cancel
Save