aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-24 16:48:54 +0200
committerChocobozzz <me@florianbigard.com>2023-05-24 16:56:05 +0200
commit54909304287f3c04dcfb39660be8ead57dc95440 (patch)
tree478f1b913f3bd4c3bbaa17525f0114c5b0a8689d /client/src/standalone/videos
parentd0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (diff)
downloadPeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.gz
PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.zst
PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.zip
Remove suppressImplicitAnyIndexErrors
It's deprecated by TS
Diffstat (limited to 'client/src/standalone/videos')
-rw-r--r--client/src/standalone/videos/embed.ts6
-rw-r--r--client/src/standalone/videos/test-embed.ts4
2 files changed, 5 insertions, 5 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)
diff --git a/client/src/standalone/videos/test-embed.ts b/client/src/standalone/videos/test-embed.ts
index ab5262902..b34df11ee 100644
--- a/client/src/standalone/videos/test-embed.ts
+++ b/client/src/standalone/videos/test-embed.ts
@@ -22,9 +22,9 @@ window.addEventListener('load', async () => {
22 mainElement.appendChild(iframe) 22 mainElement.appendChild(iframe)
23 23
24 logger.info('Document finished loading.') 24 logger.info('Document finished loading.')
25 const player = new PeerTubePlayer(document.querySelector('iframe')) 25 const player = new PeerTubePlayer(document.querySelector('iframe'));
26 26
27 window['player'] = player 27 (window as any)['player'] = player
28 28
29 logger.info('Awaiting player ready...') 29 logger.info('Awaiting player ready...')
30 await player.ready 30 await player.ready