Skip to content

Commit

Permalink
Merge pull request #4096 from IgorA100/patch-160
Browse files Browse the repository at this point in the history
Chore: Code optimization (skin.js)
  • Loading branch information
connortechnology authored Aug 19, 2024
2 parents 0ded4b8 + ed23445 commit e65d3be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/skins/classic/js/skin.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,7 @@ function stateStuff(action, runState, newState) {
function logAjaxFail(jqxhr, textStatus, error) {
console.log("Request Failed: " + textStatus + ", " + error);
if ( ! jqxhr.responseText ) {
console.log("Ajax request failed. No responseText. jqxhr follows:");
console.log(jqxhr);
console.log("Ajax request failed. No responseText. jqxhr follows:\n", jqxhr);
return;
}
var responseText = jqxhr.responseText.replace(/(<([^>]+)>)/gi, '').trim(); // strip any html or whitespace from the response
Expand Down

0 comments on commit e65d3be

Please sign in to comment.