Skip to content

Commit

Permalink
Fix window patch hack
Browse files Browse the repository at this point in the history
  • Loading branch information
smoores-dev committed Dec 17, 2024
1 parent 64e16e5 commit fa673b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/useEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export class ReactEditorView extends EditorView {
}),
plugins: props.plugins,
});
globalThis.window = prevWindow;
if (globalThis.window !== prevWindow) {
globalThis.window = prevWindow;
}

this.shouldUpdatePluginViews = true;

Expand Down

0 comments on commit fa673b5

Please sign in to comment.