From b108e54ae067b6c305d754dcda81af14607e4515 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 23 Mar 2021 11:49:44 +0100 Subject: [PATCH] Fix XXX --- www/common/cryptpad-common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index d653bd72e..8e8ec8f82 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -2517,8 +2517,7 @@ define([ } 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 - // Listen for login/logout in other tabs + // If you're in noDrive mode, check if an FS_hash is added and reload if that's the case if (rdyCfg.noDrive && !localStorage[Constants.fileHashKey]) { window.addEventListener('storage', function (e) { if (e.key !== Constants.fileHashKey) { return; } @@ -2536,6 +2535,7 @@ define([ } }); } + // Listen for login/logout in other tabs window.addEventListener('storage', function (e) { if (e.key !== Constants.userHashKey) { return; } var o = e.oldValue;