feat: exit full screen gracefully when popstate

This commit is contained in:
NoCrypt 2024-08-23 06:13:56 +07:00
parent 7654b22cd0
commit fad099eee1

View file

@ -36,6 +36,10 @@
if (!state) return
ignoreNext = true
view.set(null)
if (document.fullscreenElement) {
document.exitFullscreen();
if (state.type === 'view') page.set('home')
}
if (state.type === 'page') {
page.set(state.value)
} else {