fix(console): clear not working

This commit is contained in:
surunzi
2019-09-27 15:57:33 +08:00
parent edec4d37c6
commit de76c097a6
4 changed files with 34 additions and 30 deletions

View File

@@ -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'))
})