aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-21 15:28:12 +0200
committerChocobozzz <me@florianbigard.com>2021-04-21 15:28:12 +0200
commit3e0e8d4afded28559b7c473061bbdc31ab542e1c (patch)
tree6b9a509d8f0054b6e3e5e1f837fee3d05966c206 /client/src/assets/player/utils.ts
parent48d7e4ad13bda061c4f75e32cda4a4f579dc4302 (diff)
downloadPeerTube-3e0e8d4afded28559b7c473061bbdc31ab542e1c.tar.gz
PeerTube-3e0e8d4afded28559b7c473061bbdc31ab542e1c.tar.zst
PeerTube-3e0e8d4afded28559b7c473061bbdc31ab542e1c.zip
Revert "Fix context menu when watching a playlist"
This reverts commit e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893. We'll refactor this error handler in hls.js v1 upgrade
Diffstat (limited to 'client/src/assets/player/utils.ts')
-rw-r--r--client/src/assets/player/utils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts
index 136b69b4f..d7451fa1d 100644
--- a/client/src/assets/player/utils.ts
+++ b/client/src/assets/player/utils.ts
@@ -94,8 +94,9 @@ function buildVideoLink (options: {
94 94
95function buildPlaylistLink (options: { 95function buildPlaylistLink (options: {
96 baseUrl?: string 96 baseUrl?: string
97 playlistPosition?: number 97
98} = {}) { 98 playlistPosition: number
99}) {
99 const { baseUrl } = options 100 const { baseUrl } = options
100 101
101 const url = baseUrl 102 const url = baseUrl
@@ -105,7 +106,6 @@ function buildPlaylistLink (options: {
105 const params = generateParams(window.location.search) 106 const params = generateParams(window.location.search)
106 107
107 if (options.playlistPosition) params.set('playlistPosition', '' + options.playlistPosition) 108 if (options.playlistPosition) params.set('playlistPosition', '' + options.playlistPosition)
108 else params.delete('playlistPosition')
109 109
110 return buildUrl(url, params) 110 return buildUrl(url, params)
111} 111}