mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-01 10:18:35 +08:00
fix(console): clear not working
This commit is contained in:
@@ -40,14 +40,7 @@ export default class Console extends Tool {
|
||||
}
|
||||
|
||||
winConsole[name] = (...args) => {
|
||||
if (
|
||||
args.length > 0 ||
|
||||
name === 'group' ||
|
||||
name === 'groupCollapsed' ||
|
||||
name === 'groupEnd'
|
||||
) {
|
||||
this[name](...args)
|
||||
}
|
||||
this[name](...args)
|
||||
origin(...args)
|
||||
}
|
||||
})
|
||||
@@ -155,7 +148,7 @@ export default class Console extends Tool {
|
||||
config = this.config
|
||||
|
||||
$control
|
||||
.on('click', '.eruda-clear-console', () => logger.clear())
|
||||
.on('click', '.eruda-clear-console', () => logger.silentClear())
|
||||
.on('click', '.eruda-filter', function() {
|
||||
logger.filter($(this).data('filter'))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user