diff options
author | Simon Brazell <simon@brazell.com.au> | 2020-10-26 14:02:58 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 14:02:58 +1100 |
commit | 85cf8fc07fd8d4c8dcdce1396412ee04178b6ba6 (patch) | |
tree | 54b3c5c41598ed554ecc4195cf46e190c852b519 /background.js | |
parent | Merge pull request #106 from MichipX3/patch-1 (diff) | |
parent | Rename _locales/store.md to _locales/pl/store.md (diff) | |
download | libredirect-85cf8fc07fd8d4c8dcdce1396412ee04178b6ba6.zip |
Merge pull request #116 from austinhuang0131/master
Add Chinese translation, handle /shorts/ urls, and fix #105 folder
Diffstat (limited to 'background.js')
-rw-r--r-- | background.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/background.js b/background.js index 3f5145cd..e1405acd 100644 --- a/background.js +++ b/background.js @@ -307,7 +307,7 @@ function redirectYouTube(url, initiator, type) { url.searchParams.append("autoplay", invidiousAutoplay ? 1 : 0); return `${invidiousInstance || getRandomInstance(invidiousInstances)}${ - url.pathname + url.pathname.replace("/shorts","") }${url.search}`; } |