Skip to content

Commit

Permalink
Fix error-handling comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish authored Dec 5, 2022
1 parent de5e0ff commit 2dc32cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,9 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
}
}
} catch (error) {
// Entering fullscreen can fail without user interaction.
this.dispatchEvent(new shaka.util.FakeEvent(
'error', (new Map()).set('detail', error)));
// Entering fullscreen can fail
// if the user didn't interacting with the video.
// be rejected with an error. Suppress that error.
}
}

Expand Down

0 comments on commit 2dc32cf

Please sign in to comment.