Skip to content

Commit

Permalink
change order
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzipi-kaltura authored Jun 9, 2024
1 parent ff5222b commit a456dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/html5/html5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ export default class Html5 extends FakeEventTarget implements IEngine {
// Currently it's supported in chrome and in safari. So if we consider checking support before,
// we can use this flag to distinguish between the two. In the future we might need a different method.
// Second condition is because flow does not support this API yet
if (document.pictureInPictureEnabled && !this._el.disablePictureInPicture && typeof this._el.requestPictureInPicture === 'function') {
if (document.pictureInPictureEnabled && typeof this._el.requestPictureInPicture === 'function' && !this._el.disablePictureInPicture) {
this._el.requestPictureInPicture().catch(error => {
this.dispatchEvent(
new FakeEvent(
Expand Down

0 comments on commit a456dfc

Please sign in to comment.