diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index ef93a6016f97d..a8e03a261c7dd 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -55,11 +55,16 @@ owner = owner[prop]; if ( owner instanceof Object === false ) { return; } } + let value; const desc = Object.getOwnPropertyDescriptor(owner, prop); - if ( desc && desc.get !== undefined ) { return; } + if ( + desc instanceof Object === false || + desc.get instanceof Function === false + ) { + value = owner[prop]; + } const magic = String.fromCharCode(Date.now() % 26 + 97) + Math.floor(Math.random() * 982451653 + 982451653).toString(36); - let value = owner[prop]; const validate = function() { const e = document.currentScript; if (