mirror of
https://github.com/iv-org/invidious
synced 2024-11-27 21:43:28 +01:00
Lint conditional deletion of t in addCurrentTimeToURL inside player script
Follow lint indications : https://github.com/iv-org/invidious/pull/2912#discussion_r811474927
This commit is contained in:
parent
d77586d02d
commit
36c7d4270b
@ -60,8 +60,7 @@ function addCurrentTimeToURL(url) {
|
||||
var currentTime = Math.ceil(player.currentTime());
|
||||
if (currentTime > 0)
|
||||
urlUsed.searchParams.set('t', currentTime);
|
||||
else
|
||||
if (urlUsed.searchParams.has('t'))
|
||||
else if (urlUsed.searchParams.has('t'))
|
||||
urlUsed.searchParams.delete('t');
|
||||
return urlUsed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user