Commit b7a841d
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().
Backported to v3.3.x
Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>1 parent 6804c6a commit b7a841d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
1007 | | - | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1008 | 1011 | | |
1009 | 1012 | | |
1010 | 1013 | | |
| |||
0 commit comments