Skip to content

Commit

Permalink
add fullscreenSupported check in requestFullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Regaddi committed Jan 12, 2022
1 parent d0e8e9a commit 7e77380
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -2322,7 +2322,11 @@ export default class DailyIframe extends EventEmitter {

async requestFullscreen() {
methodNotSupportedInReactNative();
if (!this._iframe || document.fullscreenElement) {
if (
!this._iframe ||
document.fullscreenElement ||
!isFullscreenSupported()
) {
return;
}
try {
Expand Down

0 comments on commit 7e77380

Please sign in to comment.