Skip to content

Commit

Permalink
Fix JSC_STRICT_INEXISTENT_PROPERTY error
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Feb 6, 2023
1 parent 13b434d commit 31eced7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/pip_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ shaka.ui.PipButton = class extends shaka.ui.Element {
width: 100% !important; max-height: 100%}`);
pipWindow.document.head.append(styles);

/** @type {!Element} */
const parentPlayer = pipPlayer.parentElement;

// Move player to the Picture-in-Picture window.
const parentPlayer = pipPlayer.parentNode;
pipWindow.document.body.append(pipPlayer);
this.onEnterPictureInPicture_();

Expand Down

0 comments on commit 31eced7

Please sign in to comment.