@qvant/qui-max
Version:
A Vue 3 Design system for Web.
13 lines (12 loc) • 328 B
JavaScript
function getWindow(node) {
if (node == null) {
return window;
}
if (node.toString() !== "[object Window]") {
var ownerDocument = node.ownerDocument;
return ownerDocument ? ownerDocument.defaultView || window : window;
}
return node;
}
export { getWindow as default };
//# sourceMappingURL=getWindow.js.map