Skip to content

Commit

Permalink
Fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Feb 6, 2023
1 parent 54f391b commit adf27d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/pip_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ shaka.ui.PipButton = class extends shaka.ui.Element {
*/
async toggleDocumentPictureInPicture_() {
// Close Picture-in-Picture window if any.
if (documentPictureInPicture.window) {
if (window.documentPictureInPicture) {
documentPictureInPicture.window.close();
this.onLeavePictureInPicture_();
return;
Expand Down

0 comments on commit adf27d9

Please sign in to comment.