diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index ae3006998..b2560d3f8 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -45,6 +45,7 @@ function safeSelf() { if ( scriptletGlobals.has('safeSelf') ) { return scriptletGlobals.get('safeSelf'); } + const self = globalThis; const safe = { 'Error': self.Error, 'Object_defineProperty': Object.defineProperty.bind(Object),