FrontPastel/node_modules/@mui/utils/node/ownerWindow/ownerWindow.js

12 lines
386 B
JavaScript

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = ownerWindow;
var _ownerDocument = _interopRequireDefault(require("../ownerDocument"));
function ownerWindow(node) {
const doc = (0, _ownerDocument.default)(node);
return doc.defaultView || window;
}