mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
Fix: Clear log
This commit is contained in:
@@ -20,6 +20,7 @@ export default class Log extends util.Emitter
|
||||
clear()
|
||||
{
|
||||
this._logs = [];
|
||||
this._lastLog = {};
|
||||
|
||||
this._render();
|
||||
}
|
||||
@@ -195,7 +196,9 @@ export default class Log extends util.Emitter
|
||||
|
||||
var lastLog = this._lastLog;
|
||||
|
||||
if (lastLog.type === log.type && lastLog.val === log.val)
|
||||
if (log.type !== 'html' &&
|
||||
lastLog.type === log.type &&
|
||||
lastLog.val === log.val)
|
||||
{
|
||||
lastLog.times++;
|
||||
lastLog.showTimes = true;
|
||||
|
||||
Reference in New Issue
Block a user