Commit 6c54db9
fix(ui): Fix exception on screen rotation if fullscreen is not supported (#4669)
If fullscreen is not supported when enableFullscreenOnRotation option is enabled, this exception occurred:
TypeError: i.j.requestFullscreen is not a function. (In 'i.j.requestFullscreen({navigationUI:"hide"})', 'i.j.requestFullscreen' is undefined)
This fixes the exception by checking isFullScreenSupported().
Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>1 parent 731bd96 commit 6c54db9
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | | - | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1028 | 1031 | | |
1029 | 1032 | | |
1030 | 1033 | | |
| |||
0 commit comments