Skip to content

Commit

Permalink
Merge pull request #81 from danielroe/fix/window
Browse files Browse the repository at this point in the history
fix(core): handle undefined window in ssr
  • Loading branch information
andrewcourtice committed Mar 19, 2023
2 parents 4e71d1c + f2c75d1 commit 2d67528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export const {
} = createInstance();

// Attach instance creation to the global object
if (window) {
if (typeof window !== 'undefined') {
window.$harlem = {
createInstance,
};
Expand Down

1 comment on commit 2d67528

@vercel
Copy link

@vercel vercel bot commented on 2d67528 Mar 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.