Skip to content

Commit

Permalink
Fix flow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
larsjohnsen committed Sep 3, 2020
1 parent d58c601 commit 77e6a20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/modules/showImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,7 @@ class Video extends Media {
// $FlowIssue `Document#fullscreen` `Video#requestFullscreen` and `Document#exitFullscreen` not typed
this.video.requestFullscreen();
await enterFullscreenPromise;
// $FlowIssue `Document#fullscreen` `Video#requestFullscreen` and `Document#exitFullscreen` not typed
if (document.fullscreen) await waitForEvent(this.video, 'fullscreenchange', 'dblclick'); // leaves fullscreen
// $FlowIssue `Document#fullscreen` `Video#requestFullscreen` and `Document#exitFullscreen` not typed
if (document.fullscreen) document.exitFullscreen();
Expand Down

0 comments on commit 77e6a20

Please sign in to comment.