This commit is contained in:
sairaj mote 2023-01-09 01:31:19 +05:30
parent 3b3bee50e4
commit 0b9321b01d

View File

@ -2491,6 +2491,7 @@
const mobileQuery = window.matchMedia('(max-width: 40rem)')
function handleMobileChange(e) {
floGlobals.isMobileView = e.matches
routeTo(window.location.hash)
}
mobileQuery.addEventListener('change', handleMobileChange)
handleMobileChange(mobileQuery)