diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 0f8d42da..ee8e5b98 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -2298,9 +2298,6 @@ function xhrchk(xhr, prefix, e404, lvl, tag) { if (xhr.status == 404) return toast.err(0, prefix + e404 + suf, tag); - if (XC_CMSG[xhr.status]) - errtxt = XC_CMSG[xhr.status]; - if (!xhr.status && !errtxt) return toast.err(0, prefix + L.xhr0); @@ -2319,5 +2316,8 @@ function xhrchk(xhr, prefix, e404, lvl, tag) { document.body.appendChild(fr); } + if (XC_CMSG[xhr.status] && (errtxt.indexOf('