mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
20 lines
480 B
JavaScript
20 lines
480 B
JavaScript
"use strict";
|
|
|
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
|
|
exports.__esModule = true;
|
|
exports.default = ownerWindow;
|
|
|
|
var _ownerDocument = _interopRequireDefault(require("./ownerDocument"));
|
|
|
|
/**
|
|
* Returns the owner window of a given element.
|
|
*
|
|
* @param node the element
|
|
*/
|
|
function ownerWindow(node) {
|
|
var doc = (0, _ownerDocument.default)(node);
|
|
return doc && doc.defaultView || window;
|
|
}
|
|
|
|
module.exports = exports["default"]; |