diff options
| author | Simon Brazell <simon@brazell.com.au> | 2021-06-16 22:53:44 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-16 22:53:44 +1000 |
| commit | 4f9c130396c3c1aeb45d86f9479deb363c4bb622 (patch) | |
| tree | 470c72e0a7d6a662218ce0e7b219d69a849865db /src | |
| parent | ebd09086b63fabcb79c1a5e6204bc3f8f948c7d8 (diff) | |
| parent | 8e88786dc20677a97225ea2b608aab487b1dd58f (diff) | |
| download | privacy-redirect-4f9c130396c3c1aeb45d86f9479deb363c4bb622.tar.gz privacy-redirect-4f9c130396c3c1aeb45d86f9479deb363c4bb622.tar.bz2 privacy-redirect-4f9c130396c3c1aeb45d86f9479deb363c4bb622.zip | |
Merge pull request #246 from B0pol/autoplay
Only append autoplay parameter if necessary
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/background/background.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 4fa3693..d60d066 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -279,7 +279,9 @@ function redirectYouTube(url, initiator, type) { if (invidiousSubtitles) { url.searchParams.append("subtitles", invidiousSubtitles); } - url.searchParams.append("autoplay", invidiousAutoplay ? 1 : 0); + if (invidiousAutoplay) { + url.searchParams.append("autoplay", 1); + } return `${ invidiousInstance || commonHelper.getRandomInstance(invidiousRandomPool) |
