script: make builtin script use parent locals

This commit is contained in:
bordun 2020-05-22 15:29:59 +02:00
parent 4295483fad
commit 4af5c8b1b6

View file

@ -105,7 +105,7 @@ class Script extends Widget {
this.scriptLock = true
try {
this.script(context, this.parsersLocalScope)
this.script(context, this.builtIn ? this.parent.parsersLocalScope : this.parsersLocalScope)
} catch(e) {
console.log(e)
}