Blame view

node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js 311 Bytes
4cd4fd28   郭伟龙   feat: 初始化项目
1
2
3
4
5
6
import { isElement } from "./instanceOf.js";
export default function getDocumentElement(element) {
  // $FlowFixMe[incompatible-return]: assume body is always available
  return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
  element.document) || window.document).documentElement;
}