diff options
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index d268f4762..cc4274b99 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -52,7 +52,7 @@ export class PeerTubeEmbed { | |||
52 | this.liveManager = new LiveManager(this.playerHTML) | 52 | this.liveManager = new LiveManager(this.playerHTML) |
53 | 53 | ||
54 | try { | 54 | try { |
55 | this.config = JSON.parse(window['PeerTubeServerConfig']) | 55 | this.config = JSON.parse((window as any)['PeerTubeServerConfig']) |
56 | } catch (err) { | 56 | } catch (err) { |
57 | logger.error('Cannot parse HTML config.', err) | 57 | logger.error('Cannot parse HTML config.', err) |
58 | } | 58 | } |
@@ -254,9 +254,9 @@ export class PeerTubeEmbed { | |||
254 | this.player.dispose() | 254 | this.player.dispose() |
255 | this.playerHTML.removePlayerElement() | 255 | this.playerHTML.removePlayerElement() |
256 | this.playerHTML.displayError('This video is not available because the remote instance is not responding.', translations) | 256 | this.playerHTML.displayError('This video is not available because the remote instance is not responding.', translations) |
257 | }) | 257 | }); |
258 | 258 | ||
259 | window['videojsPlayer'] = this.player | 259 | (window as any)['videojsPlayer'] = this.player |
260 | 260 | ||
261 | this.buildCSS() | 261 | this.buildCSS() |
262 | this.buildPlayerDock(video) | 262 | this.buildPlayerDock(video) |