scripting: expose console.clear()
This commit is contained in:
parent
19624c36d3
commit
fc8c843e84
2 changed files with 10 additions and 0 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## next
|
||||
|
||||
- scripting
|
||||
- expose `console.clear()`
|
||||
|
||||
## 1.9.7
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -51,6 +51,11 @@ class UiConsole extends UiSidePanel {
|
|||
console._error(...arguments)
|
||||
}
|
||||
|
||||
console._clear = console.clear
|
||||
console.clear = function(){
|
||||
_this.clear()
|
||||
console._clear()
|
||||
}
|
||||
|
||||
this.script = new Script({props:{
|
||||
id: 'CONSOLE',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue