UNPKG

get-client-window-size

Version:

A safe way of returning the interior width and height of the window in pixels

20 lines (14 loc) 665 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var getClientWindowWidth = _interopDefault(require('get-client-window-width')); var getClientWindowHeight = _interopDefault(require('get-client-window-height')); var getClientWindowSize = function getClientWindowSize() { return { width: getClientWindowWidth(), height: getClientWindowHeight() }; }; exports.default = getClientWindowSize; exports.getClientWindowSize = getClientWindowSize; //# sourceMappingURL=get-client-window-size.cjs.development.js.map