scripting: prevent crash (built-in client only) when using the variable navigator

This commit is contained in:
jean-emmanuel 2021-04-23 10:28:15 +02:00
parent 6813be50fb
commit f3acec538f
3 changed files with 8 additions and 1 deletions

View file

@ -54,7 +54,8 @@ class UiConsole extends UiSidePanel {
this.script = new Script({props:{
id: 'CONSOLE',
script: 'return eval(value)',
// detached context++ reading global navigator == crash electron
script: 'var navigator; return eval(value)',
event: 'value'
}, parent: widgetManager})
this.script._not_editable = true