xmpp.chapril.org-conversejs/src/plugins/chatboxviews/utils.js

6 lines
161 B
JavaScript
Raw Normal View History

export function calculateViewportHeightUnit () {
const vh = window.innerHeight * 0.01;
document.documentElement.style.setProperty('--vh', `${vh}px`);
}