Skip to content

Commit

Permalink
fix: pip event
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Jun 17, 2022
1 parent 4fd3223 commit 2722602
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Expand Up @@ -246,7 +246,11 @@ export const SuperMediaMixin = (superclass, { tag, is }) => {
return;
}
// Filter out non-media events.
if (!['Event', 'CustomEvent'].includes(evt.constructor.name)) {
if (
!['Event', 'CustomEvent', 'PictureInPictureEvent'].includes(
evt.constructor.name
)
) {
return;
}
this.dispatchEvent(
Expand Down

0 comments on commit 2722602

Please sign in to comment.