Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
smoores-dev committed Dec 17, 2024
1 parent 91812fe commit 1bea9a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/cjs/hooks/useEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ let ReactEditorView = class ReactEditorView extends _prosemirrorview.EditorView
// to an empty object to prevent an error from being thrown, and then
// clean it up so that other isomorphic code doesn't get confused about
// whether there's a functioning global window object
globalThis.window ??= {};
globalThis.window ??= {
visualViewport: null
};
super(place, {
state: _prosemirrorstate.EditorState.create({
schema: props.state.schema,
Expand Down
4 changes: 3 additions & 1 deletion dist/esm/hooks/useEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export class ReactEditorView extends EditorView {
// to an empty object to prevent an error from being thrown, and then
// clean it up so that other isomorphic code doesn't get confused about
// whether there's a functioning global window object
globalThis.window ??= {};
globalThis.window ??= {
visualViewport: null
};
super(place, {
state: EditorState.create({
schema: props.state.schema,
Expand Down

0 comments on commit 1bea9a0

Please sign in to comment.