diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/static/client3.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/static/client3.js b/src/static/client3.js index b710b2bd..4dab19d1 100644 --- a/src/static/client3.js +++ b/src/static/client3.js @@ -22,6 +22,16 @@ const clientSteps = { function initInfo(key, description) { const object = {...description}; + for (const obj of [ + object, + object.state, + object.setting, + object.event, + ]) { + if (!obj) continue; + Object.preventExtensions(obj); + } + clientInfo[key] = object; return object; |