don't try to be smart
This commit is contained in:
parent
2ddd7ef7e4
commit
953c9f3f5c
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ let vh = window.innerHeight * 0.01;
|
|||
root.style.setProperty('--vh', `${vh}px`);
|
||||
this.lastHeight = window.innerHeight;
|
||||
|
||||
/*
|
||||
// We listen to the resize event
|
||||
window.addEventListener('resize', () => {
|
||||
// We execute the same script as before
|
||||
|
@ -15,3 +16,4 @@ window.addEventListener('resize', () => {
|
|||
this.lastHeight = window.innerHeight;
|
||||
}
|
||||
});
|
||||
*/
|
Loading…
Reference in a new issue