Skip to content

Commit

Permalink
Ignore "load" statusText
Browse files Browse the repository at this point in the history
Fixes #1428
  • Loading branch information
lekoala authored and GuySartorelli committed Feb 16, 2023
1 parent 304a4d2 commit 5da7d8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/src/legacy/LeftAndMain.js
Expand Up @@ -168,7 +168,7 @@ $.entwine('ss', function($) {
destUrl = settings.url,
msg = xhr.getResponseHeader('X-Status') !== null ? xhr.getResponseHeader('X-Status') : xhr.statusText, // Handle custom status message headers
msgType = (xhr.status < 200 || xhr.status > 399) ? 'error' : 'success',
ignoredMessages = ['OK', 'success', 'HTTP/2.0 200'];
ignoredMessages = ['OK', 'success', 'load', 'HTTP/2.0 200'];

// Only redirect if controller url differs to the requested or current one
if (url !== null && (!isSameUrl(origUrl, url) || !isSameUrl(destUrl, url))) {
Expand Down

0 comments on commit 5da7d8f

Please sign in to comment.