akkoma-fe/src/services/window_utils/window_utils.js
2020-07-08 15:21:31 +03:00

10 lines
258 B
JavaScript

export const windowWidth = () =>
window.innerWidth ||
document.documentElement.clientWidth ||
document.body.clientWidth
export const windowHeight = () =>
window.innerHeight ||
document.documentElement.clientHeight ||
document.body.clientHeight