scripting: expose console.clear()

This commit is contained in:
bordun 2021-05-10 20:26:35 +02:00
parent 19624c36d3
commit fc8c843e84
2 changed files with 10 additions and 0 deletions

View file

@ -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',