diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-05 10:05:00 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-05 10:05:00 +0100 |
commit | 3a1fed11c52705002cbf2a17294509fb5a89237c (patch) | |
tree | 9140310efbd9ba7f1b7254e3fd580e84322792a7 /client/src/assets | |
parent | 689a4f6946e47ddf4871fd43bbd1284a4dc79e68 (diff) | |
download | PeerTube-3a1fed11c52705002cbf2a17294509fb5a89237c.tar.gz PeerTube-3a1fed11c52705002cbf2a17294509fb5a89237c.tar.zst PeerTube-3a1fed11c52705002cbf2a17294509fb5a89237c.zip |
Support playlists in share modal
Diffstat (limited to 'client/src/assets')
-rw-r--r-- | client/src/assets/player/utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts index 777abb568..629634985 100644 --- a/client/src/assets/player/utils.ts +++ b/client/src/assets/player/utils.ts | |||
@@ -51,6 +51,8 @@ function buildVideoLink (options: { | |||
51 | : window.location.origin + window.location.pathname.replace('/embed/', '/watch/') | 51 | : window.location.origin + window.location.pathname.replace('/embed/', '/watch/') |
52 | 52 | ||
53 | const params = new URLSearchParams(window.location.search) | 53 | const params = new URLSearchParams(window.location.search) |
54 | // Remove this unused parameter when we are on a playlist page | ||
55 | params.delete('videoId') | ||
54 | 56 | ||
55 | if (options.startTime) { | 57 | if (options.startTime) { |
56 | const startTimeInt = Math.floor(options.startTime) | 58 | const startTimeInt = Math.floor(options.startTime) |