Skip to content

Commit 38d43a2

Browse files
committed
Update bottomfloat.js
1 parent d2e3606 commit 38d43a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bottomfloat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ if (isMobile) {
121121

122122
bottomWrapper.style.setProperty('--window-height', window.innerHeight + 'px');
123123

124-
const portrait = window.matchMedia('(orientation: portrait)');
124+
const landscape = window.matchMedia('(orientation: landscape)');
125125

126-
portrait.addEventListener('change', (event) => {
126+
landscape.addEventListener('change', (event) => {
127127

128128
bottomWrapper.style.setProperty('--window-height', window.innerHeight + 'px');
129129

0 commit comments

Comments
 (0)