Plugins: allow outpurs to copy from input (#14960)

This commit is contained in:
andig 2024-07-21 23:07:53 +02:00 • committed by GitHub
parent dbd4c4fd92
commit 6b892f0877
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -125,6 +125,10 @@ func (p *Javascript) handleGetter() (any, error) {
}
func (p *Javascript) handleSetter(param string, val any) error {
if err := transformInputs(p.in, p.setParamSync); err != nil {
return err
}
javascript.Lock()
if err := p.setParam(param, val); err != nil {
javascript.Unlock()