Skip to content

Commit

Permalink
don't override globalThis if it already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
erocheleau committed Nov 22, 2024
1 parent e3274a0 commit 2e27743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/headless/ponyfills/global-this-shim.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Shim globalThis because Salesforce Locker Service doesn't support it.
const globalThisShim = window;
const globalThisShim = typeof globalThis !== 'undefined' ? globalThis : window;

export {globalThisShim as globalThis};

0 comments on commit 2e27743

Please sign in to comment.