Skip to content

Commit d9dff9a

Browse files
committed
v3.4.11
1 parent bb144f7 commit d9dff9a

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ if (feedbackButton) {
6060
BugBattle.xxx();
6161
};
6262
}
63+
64+
console.warn("DEMO!");
65+
66+
console.log("HI!");

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BugBattle.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class BugBattle {
428428
};
429429
}
430430

431-
addLog(args, type) {
431+
addLog(args, priority) {
432432
if (!args) {
433433
return;
434434
}
@@ -438,9 +438,9 @@ class BugBattle {
438438
log += args[i] + " ";
439439
}
440440
this.logArray.push({
441-
log: log,
441+
log,
442442
date: new Date(),
443-
type: type,
443+
priority,
444444
});
445445
}
446446

@@ -459,19 +459,19 @@ class BugBattle {
459459

460460
return {
461461
log: function () {
462-
self.addLog(arguments, "log");
462+
self.addLog(arguments, "INFO");
463463
origConsole.log && origConsole.log.apply(origConsole, arguments);
464464
},
465465
warn: function () {
466-
self.addLog(arguments, "warns");
466+
self.addLog(arguments, "WARNING");
467467
origConsole.warn && origConsole.warn.apply(origConsole, arguments);
468468
},
469469
error: function () {
470-
self.addLog(arguments, "error");
470+
self.addLog(arguments, "ERROR");
471471
origConsole.error && origConsole.error.apply(origConsole, arguments);
472472
},
473473
info: function (v) {
474-
self.addLog(arguments, "info");
474+
self.addLog(arguments, "INFO");
475475
origConsole.info && origConsole.info.apply(origConsole, arguments);
476476
},
477477
};

0 commit comments

Comments
 (0)