Merge pull request #246 from B0pol/autoplay
Only append autoplay parameter if necessary
This commit is contained in:
commit
4f9c130396
|
@ -279,7 +279,9 @@ function redirectYouTube(url, initiator, type) {
|
||||||
if (invidiousSubtitles) {
|
if (invidiousSubtitles) {
|
||||||
url.searchParams.append("subtitles", invidiousSubtitles);
|
url.searchParams.append("subtitles", invidiousSubtitles);
|
||||||
}
|
}
|
||||||
url.searchParams.append("autoplay", invidiousAutoplay ? 1 : 0);
|
if (invidiousAutoplay) {
|
||||||
|
url.searchParams.append("autoplay", 1);
|
||||||
|
}
|
||||||
|
|
||||||
return `${
|
return `${
|
||||||
invidiousInstance || commonHelper.getRandomInstance(invidiousRandomPool)
|
invidiousInstance || commonHelper.getRandomInstance(invidiousRandomPool)
|
||||||
|
|
Loading…
Reference in New Issue