Fix window height for mobile devices
This commit is contained in:
		@@ -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")) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user