Skip to content

Commit

Permalink
fix: emit is-pip false
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Aug 1, 2021
1 parent 3059e29 commit 136ca11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VPip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
state.video?.addEventListener('leavepictureinpicture', leftPip);
});
onBeforeUnmount(() => {
state.video?.removeEventListener('enterpictureinpicture', () => {});
state.video?.removeEventListener('leavepictureinpicture', () => {});
state.video?.removeEventListener('enterpictureinpicture', leftPip);
state.video?.removeEventListener('leavepictureinpicture', leftPip);
});
/**
* Emit an event when entered PiP mode
Expand Down

0 comments on commit 136ca11

Please sign in to comment.