From 98ab5dc81048d47d08a231f17698128f959e59b2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Aug 2021 16:14:11 +0200 Subject: Remove useless async --- client/src/standalone/videos/embed.ts | 4 ++-- client/src/standalone/videos/test-embed.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/standalone/videos') 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 { this.buildCSS() - await this.buildDock(videoInfo) + this.buildDock(videoInfo) this.initializeApi() @@ -665,7 +665,7 @@ export class PeerTubeEmbed { } } - private async buildDock (videoInfo: VideoDetails) { + private buildDock (videoInfo: VideoDetails) { if (!this.controls) return // 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 () => { let playbackRates: number[] = [] let currentRate = await player.getPlaybackRate() - const updateRates = async () => { + const updateRates = () => { const rateListEl = document.querySelector('#rate-list') rateListEl.innerHTML = '' -- cgit v1.2.3