Fix window height for mobile devices

This commit is contained in:
2022-08-28 11:24:13 +02:00
parent c90de1a895
commit 753ecec0b6
2 changed files with 14 additions and 7 deletions

View File

@ -2,6 +2,13 @@
import * as Locutus from "locutus";
function resize() {
document.documentElement.style.setProperty('--vh', `${window.innerHeight * 0.01}px`);
}
resize();
window.addEventListener("resize", resize);
window.addEventListener("DOMContentLoaded", () => {
// Remove <noscript> tags
for (const noscript of document.getElementsByTagName("noscript")) {