diff options
| author | Dimitris Apostolou <dimitris.apostolou@icloud.com> | 2022-02-07 14:57:14 +0200 |
|---|---|---|
| committer | Dimitris Apostolou <dimitris.apostolou@icloud.com> | 2022-02-07 14:57:14 +0200 |
| commit | 7e4690e43c9d037134cc0700b3ced7b46de94dcb (patch) | |
| tree | b8b2bdcb0aeaa681d4e5199836add032a00f7d50 /assets/js/player.js | |
| parent | df599c0fc3226cdb5ce4cccfd26c02228976cac3 (diff) | |
| download | invidious-7e4690e43c9d037134cc0700b3ced7b46de94dcb.tar.gz invidious-7e4690e43c9d037134cc0700b3ced7b46de94dcb.tar.bz2 invidious-7e4690e43c9d037134cc0700b3ced7b46de94dcb.zip | |
Fix typos
Diffstat (limited to 'assets/js/player.js')
| -rw-r--r-- | assets/js/player.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 66d1682f..a5ea08ec 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -86,7 +86,7 @@ if (location.pathname.startsWith('/embed/')) { }); } -// Detect mobile users and initalize mobileUi for better UX +// Detect mobile users and initialize mobileUi for better UX // Detection code taken from https://stackoverflow.com/a/20293441 function isMobile() { @@ -119,7 +119,7 @@ if (isMobile()) { operations_bar_element.className += " mobile-operations-bar" player.addChild(operations_bar) - // Playback menu doesn't work when its initalized outside of the primary control bar + // Playback menu doesn't work when it's initialized outside of the primary control bar playback_element = document.getElementsByClassName("vjs-playback-rate")[0] operations_bar_element.append(playback_element) @@ -138,7 +138,7 @@ if (isMobile()) { player.on('error', function (event) { if (player.error().code === 2 || player.error().code === 4) { setTimeout(function (event) { - console.log('An error occured in the player, reloading...'); + console.log('An error occurred in the player, reloading...'); var currentTime = player.currentTime(); var playbackRate = player.playbackRate(); |
