MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / getWindow

Function getWindow

packages/core/src/designer/location.ts:104–106  ·  view source on GitHub ↗
(elem: Element | Document)

Source from the content-addressed store, hash-verified

102}
103
104export const getWindow = (elem: Element | Document): Window => {
105 return (isDocumentNode(elem) ? elem : elem.ownerDocument!).defaultView!
106}
107
108export class DropLocation {
109 readonly target: INode

Callers

nothing calls this directly

Calls 1

isDocumentNodeFunction · 0.90

Tested by

no test coverage detected