diff options
Diffstat (limited to 'client/src/assets/player/utils.ts')
-rw-r--r-- | client/src/assets/player/utils.ts | 6 |
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 | ||
95 | function buildPlaylistLink (options: { | 95 | function 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 | } |