diff --git a/assets/js/player.js b/assets/js/player.js index eed26e5cb..f0b616a02 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -60,9 +60,8 @@ function addCurrentTimeToURL(url) { var currentTime = Math.ceil(player.currentTime()); if (currentTime > 0) urlUsed.searchParams.set('t', currentTime); - else - if (urlUsed.searchParams.has('t')) - urlUsed.searchParams.delete('t'); + else if (urlUsed.searchParams.has('t')) + urlUsed.searchParams.delete('t'); return urlUsed; }