mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-28 21:38:42 +00:00
feat: exit full screen gracefully when popstate
This commit is contained in:
parent
7654b22cd0
commit
fad099eee1
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue