web: Don't try to enter fullscreen if already in fullscreen & vice versa

Fixes #9615
This commit is contained in:
nosamu 2023-08-25 23:28:13 -05:00 committed by relrelb
parent b456296769
commit 7838d4549b
1 changed files with 1 additions and 1 deletions

View File

@ -875,7 +875,7 @@ export class RufflePlayer extends HTMLElement {
* @param isFull Whether to set to fullscreen or return to normal.
*/
setFullscreen(isFull: boolean): void {
if (this.fullscreenEnabled) {
if (this.fullscreenEnabled && isFull !== this.isFullscreen) {
if (isFull) {
this.enterFullscreen();
} else {