diff options
Diffstat (limited to 'client/src/standalone')
-rw-r--r-- | client/src/standalone/player/player.ts | 2 | ||||
-rw-r--r-- | client/src/standalone/videos/embed.html | 1 | ||||
-rw-r--r-- | client/src/standalone/videos/embed.ts | 6 | ||||
-rw-r--r-- | client/src/standalone/videos/test-embed.html | 2 | ||||
-rw-r--r-- | client/src/standalone/videos/test-embed.ts | 4 |
5 files changed, 8 insertions, 7 deletions
diff --git a/client/src/standalone/player/player.ts b/client/src/standalone/player/player.ts index bbe37a42b..75487258b 100644 --- a/client/src/standalone/player/player.ts +++ b/client/src/standalone/player/player.ts | |||
@@ -233,4 +233,4 @@ export class PeerTubePlayer { | |||
233 | } | 233 | } |
234 | 234 | ||
235 | // put it on the window as well as the export | 235 | // put it on the window as well as the export |
236 | (window['PeerTubePlayer'] as any) = PeerTubePlayer | 236 | (window as any)['PeerTubePlayer'] = PeerTubePlayer |
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html index eab6f81a6..32bf5f655 100644 --- a/client/src/standalone/videos/embed.html +++ b/client/src/standalone/videos/embed.html | |||
@@ -35,6 +35,7 @@ | |||
35 | <body id="custom-css" class="standalone-video-embed"> | 35 | <body id="custom-css" class="standalone-video-embed"> |
36 | 36 | ||
37 | <div id="error-block"> | 37 | <div id="error-block"> |
38 | <!-- eslint-disable-next-line @angular-eslint/template/elements-content --> | ||
38 | <h1 id="error-title"></h1> | 39 | <h1 id="error-title"></h1> |
39 | 40 | ||
40 | <div id="error-content"></div> | 41 | <div id="error-content"></div> |
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.html b/client/src/standalone/videos/test-embed.html index 2b4918681..d818a45ee 100644 --- a/client/src/standalone/videos/test-embed.html +++ b/client/src/standalone/videos/test-embed.html | |||
@@ -6,7 +6,7 @@ | |||
6 | <header> | 6 | <header> |
7 | <div class="logo"> | 7 | <div class="logo"> |
8 | <div class="icon"> | 8 | <div class="icon"> |
9 | <img src="../../assets/images/logo.svg"> | 9 | <img src="../../assets/images/logo.svg" alt=""> |
10 | </div> | 10 | </div> |
11 | <div> | 11 | <div> |
12 | PeerTube | 12 | PeerTube |
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 |