Skip to content

Commit 1a78c60

Browse files
authored
Chore: Code optimization (skin.js)
You should not call "console.log" again, because if you put a comma, the object will be displayed on a new console line.
1 parent cec6723 commit 1a78c60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/skins/classic/js/skin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,7 @@ function stateStuff(action, runState, newState) {
943943
function logAjaxFail(jqxhr, textStatus, error) {
944944
console.log("Request Failed: " + textStatus + ", " + error);
945945
if ( ! jqxhr.responseText ) {
946-
console.log("Ajax request failed. No responseText. jqxhr follows:");
947-
console.log(jqxhr);
946+
console.log("Ajax request failed. No responseText. jqxhr follows:", jqxhr);
948947
return;
949948
}
950949
var responseText = jqxhr.responseText.replace(/(<([^>]+)>)/gi, '').trim(); // strip any html or whitespace from the response

0 commit comments

Comments
 (0)