go back from player when video end

This commit is contained in:
nklhrstv 2020-03-23 12:17:58 +02:00
parent 5016788262
commit ea44bd6726

View file

@ -77,6 +77,7 @@ const Player = ({ urlParams }) => {
if (player.next_video !== null) {
// TODO go to next video
}
window.history.back();
}, [player.next_video, player.lib_item]);
const onError = React.useCallback((error) => {
if (error.critical) {