diff options
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index b89c901f1..356f149c0 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -117,6 +117,11 @@ export class PeerTubeEmbed { | |||
117 | 117 | ||
118 | private initializeApi () { | 118 | private initializeApi () { |
119 | if (this.playerManagerOptions.hasAPIEnabled()) { | 119 | if (this.playerManagerOptions.hasAPIEnabled()) { |
120 | if (this.api) { | ||
121 | this.api.reInit() | ||
122 | return | ||
123 | } | ||
124 | |||
120 | this.api = new PeerTubeEmbedApi(this) | 125 | this.api = new PeerTubeEmbedApi(this) |
121 | this.api.initialize() | 126 | this.api.initialize() |
122 | } | 127 | } |