diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:48:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:56:05 +0200 |
commit | 54909304287f3c04dcfb39660be8ead57dc95440 (patch) | |
tree | 478f1b913f3bd4c3bbaa17525f0114c5b0a8689d /client/src/standalone/videos/embed.ts | |
parent | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (diff) | |
download | PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.gz PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.zst PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.zip |
Remove suppressImplicitAnyIndexErrors
It's deprecated by TS
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) |