diff options
author | Robin Appelman <robin@icewind.nl> | 2016-12-01 23:44:50 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-12-01 23:44:50 +0100 |
commit | 8a3b6609694ae286da1ebc5025ec8dc728606931 (patch) | |
tree | 6b09cf62681c9e2f83d385961627404966e53d42 /core/js/js.js | |
parent | ac1bf3c2b7e0a820d68bf50d57f602a01a714d43 (diff) | |
download | nextcloud-server-8a3b6609694ae286da1ebc5025ec8dc728606931.tar.gz nextcloud-server-8a3b6609694ae286da1ebc5025ec8dc728606931.zip |
only reload on errors when logged in
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index e2b8731c877..972f0e63144 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -776,7 +776,7 @@ var OCP = {}, return; } - if (_.contains([302, 303, 307, 401], xhr.status)) { + if (_.contains([302, 303, 307, 401], xhr.status) && OC.currentUser) { // sometimes "beforeunload" happens later, so need to defer the reload a bit setTimeout(function() { if (!self._userIsNavigatingAway && !self._reloadCalled) { |