From 599d9ab4c439d598146f69f60123996e993aee79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Polakovi=C4=8D?= Date: Mon, 31 Jan 2022 14:25:56 +0100 Subject: [PATCH] Remove the superfluous exitPictureInPicture call. --- src/js/web-components/video-player/VideoPlayer.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/js/web-components/video-player/VideoPlayer.js b/src/js/web-components/video-player/VideoPlayer.js index c73864a..42420a7 100644 --- a/src/js/web-components/video-player/VideoPlayer.js +++ b/src/js/web-components/video-player/VideoPlayer.js @@ -467,7 +467,6 @@ export default class VideoPlayer extends HTMLElement { // If another video is already in PiP, pause it and exit PiP mode. if (document.pictureInPictureElement instanceof VideoPlayer) { document.pictureInPictureElement.videoElement.pause(); - await document.exitPictureInPicture(); } await this.videoElement.requestPictureInPicture(); } else {