Sfoglia il codice sorgente

only reload on errors when logged in

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v11.0RC2
Robin Appelman 7 anni fa
parent
commit
8a3b660969
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      core/js/js.js

+ 1
- 1
core/js/js.js Vedi File

@@ -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) {

Loading…
Annulla
Salva