Skip to content

Commit

Permalink
Fix doc(cm) to actually return a document
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jul 19, 2022
1 parent 139983f commit 24c3a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ if (ios) // Mobile Safari apparently has a bug where select() is broken.
else if (ie) // Suppress mysterious IE10 errors
selectInput = function(node) { try { node.select() } catch(_e) {} }

export function doc(cm) { return cm.display.wrapper.ownerDocument.defaultView }
export function doc(cm) { return cm.display.wrapper.ownerDocument }

export function win(cm) { return doc(cm).defaultView }

0 comments on commit 24c3a06

Please sign in to comment.