Add navigationUI option to requestFullscreen()

This commit is contained in:
kwaroran
2024-03-15 11:04:25 +09:00
parent 630555fdef
commit c46744f4e4

View File

@@ -1477,7 +1477,9 @@ export function toggleFullscreen(){
const exitFullscreen = document.exitFullscreen ?? document.webkitExitFullscreen as typeof document.exitFullscreen
// @ts-ignore
const fullscreenElement = document.fullscreenElement ?? document.webkitFullscreenElement as typeof document.fullscreenElement
fullscreenElement ? exitFullscreen() : requestFullscreen()
fullscreenElement ? exitFullscreen() : requestFullscreen({
navigationUI: "hide"
})
}
export function trimNonLatin(data:string){