Skip to content

Commit

Permalink
feat(clerk-remix): Introduce global polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosdouvlis committed Feb 18, 2022
1 parent ef91121 commit 78435ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/remix/src/globalPolyfill.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (typeof window !== 'undefined' && typeof (window as any).global === 'undefined') {
(window as any).global = window;
}

0 comments on commit 78435ca

Please sign in to comment.