Skip to content

Commit

Permalink
Use globalThis instead of self in scriptlet helper
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Aug 25, 2023
1 parent 15e6f79 commit 2282215
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/resources/scriptlets.js
Expand Up @@ -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),
Expand Down

0 comments on commit 2282215

Please sign in to comment.