Clean up speed options logic

This commit is contained in:
Sam Potts
2020-02-08 23:09:41 +00:00
parent b5456e1de7
commit 90dc985657
4 changed files with 18 additions and 18 deletions

View File

@ -196,12 +196,6 @@ const vimeo = {
.then(() => {
speed = input;
triggerEvent.call(player, player.media, 'ratechange');
})
.catch(error => {
// Hide menu item (and menu if empty)
if (error.name === 'Error') {
controls.setSpeedMenu.call(player, []);
}
});
},
});