diff options
Diffstat (limited to 'client/src/standalone')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index a7fb087b1..8d1720f75 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -438,7 +438,7 @@ export class PeerTubeEmbed { | |||
438 | return videoInfo | 438 | return videoInfo |
439 | }) | 439 | }) |
440 | 440 | ||
441 | const [ videoInfo, serverTranslations, captionsResponse, config, PeertubePlayerManagerModule ] = await Promise.all([ | 441 | const [ videoInfoTmp, serverTranslations, captionsResponse, config, PeertubePlayerManagerModule ] = await Promise.all([ |
442 | videoInfoPromise, | 442 | videoInfoPromise, |
443 | this.translationsPromise, | 443 | this.translationsPromise, |
444 | captionsPromise, | 444 | captionsPromise, |
@@ -446,6 +446,8 @@ export class PeerTubeEmbed { | |||
446 | this.PeertubePlayerManagerModulePromise | 446 | this.PeertubePlayerManagerModulePromise |
447 | ]) | 447 | ]) |
448 | 448 | ||
449 | const videoInfo: VideoDetails = videoInfoTmp | ||
450 | |||
449 | const PeertubePlayerManager = PeertubePlayerManagerModule.PeertubePlayerManager | 451 | const PeertubePlayerManager = PeertubePlayerManagerModule.PeertubePlayerManager |
450 | const videoCaptions = await this.buildCaptions(serverTranslations, captionsResponse) | 452 | const videoCaptions = await this.buildCaptions(serverTranslations, captionsResponse) |
451 | 453 | ||