web: Don't try to enter fullscreen if already in fullscreen & vice versa
Fixes #9615
This commit is contained in:
parent
b456296769
commit
7838d4549b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue