mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge pull request #2166 from cryptpad/fix-5xx-deleteLastCP-call
Do not delete last checkpoint on 5xx error
This commit is contained in:
commit
fb772bc2e4
@ -734,7 +734,7 @@ define([
|
||||
if (window.sendCredentials) { xhr.withCredentials = true; }
|
||||
xhr.responseType = 'arraybuffer';
|
||||
xhr.onload = function () {
|
||||
if (/^4/.test('' + this.status)) {
|
||||
if (/^[45]/.test('' + this.status)) {
|
||||
reject(this.status);
|
||||
return void console.error('XHR error', this.status);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user