Skip to content

Commit

Permalink
Merge pull request #87 from SuperViz/feat/yjs-for-cdn
Browse files Browse the repository at this point in the history
fix: compare typeof window to string
  • Loading branch information
Raspincel authored Oct 17, 2024
2 parents ea528c4 + 6307f8a commit 58c744f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export type { Events, MessageCallback, ProviderState } from './provider/types';

export { SuperVizYjsProvider };

if (typeof window !== undefined) {
if (typeof window !== 'undefined') {
window.SuperVizYjsProvider = SuperVizYjsProvider;
}

0 comments on commit 58c744f

Please sign in to comment.