Skip to content

Commit

Permalink
Merge pull request #1429 from lekoala/patch-4
Browse files Browse the repository at this point in the history
Ignore "load" statusText
  • Loading branch information
GuySartorelli authored Feb 17, 2023
2 parents 304a4d2 + 5da7d8f commit 4075938
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
Original file line number Diff line number Diff line change
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 4075938

Please sign in to comment.