aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-25 16:14:11 +0200
committerChocobozzz <me@florianbigard.com>2021-08-26 10:01:42 +0200
commit98ab5dc81048d47d08a231f17698128f959e59b2 (patch)
tree7f74f835dc35d9f72918c56857f7f28b70d7053f /client/src/standalone/videos
parent851675c5591dcab1070183f0ed1b1a788de07d2c (diff)
downloadPeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.gz
PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.zst
PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.zip
Remove useless async
Diffstat (limited to 'client/src/standalone/videos')
-rw-r--r--client/src/standalone/videos/embed.ts4
-rw-r--r--client/src/standalone/videos/test-embed.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index f35f4a23a..36480922e 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -589,7 +589,7 @@ export class PeerTubeEmbed {
589 589
590 this.buildCSS() 590 this.buildCSS()
591 591
592 await this.buildDock(videoInfo) 592 this.buildDock(videoInfo)
593 593
594 this.initializeApi() 594 this.initializeApi()
595 595
@@ -665,7 +665,7 @@ export class PeerTubeEmbed {
665 } 665 }
666 } 666 }
667 667
668 private async buildDock (videoInfo: VideoDetails) { 668 private buildDock (videoInfo: VideoDetails) {
669 if (!this.controls) return 669 if (!this.controls) return
670 670
671 // On webtorrent fallback, player may have been disposed 671 // On webtorrent fallback, player may have been disposed
diff --git a/client/src/standalone/videos/test-embed.ts b/client/src/standalone/videos/test-embed.ts
index a051f1f89..301c95d7b 100644
--- a/client/src/standalone/videos/test-embed.ts
+++ b/client/src/standalone/videos/test-embed.ts
@@ -47,7 +47,7 @@ window.addEventListener('load', async () => {
47 let playbackRates: number[] = [] 47 let playbackRates: number[] = []
48 let currentRate = await player.getPlaybackRate() 48 let currentRate = await player.getPlaybackRate()
49 49
50 const updateRates = async () => { 50 const updateRates = () => {
51 const rateListEl = document.querySelector('#rate-list') 51 const rateListEl = document.querySelector('#rate-list')
52 rateListEl.innerHTML = '' 52 rateListEl.innerHTML = ''
53 53