mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
16 lines
440 B
JavaScript
16 lines
440 B
JavaScript
"use strict";
|
|
|
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
|
|
exports.__esModule = true;
|
|
exports.default = isWindow;
|
|
|
|
var _isDocument = _interopRequireDefault(require("./isDocument"));
|
|
|
|
function isWindow(node) {
|
|
if ('window' in node && node.window === node) return node;
|
|
if ((0, _isDocument.default)(node)) return node.defaultView || false;
|
|
return false;
|
|
}
|
|
|
|
module.exports = exports["default"]; |