From c47106315ae3c403239cda29c49b4bba51ddccb2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 2 Apr 2019 18:30:26 +0200 Subject: tslint update --- client/src/standalone/videos/embed.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client/src/standalone/videos/embed.ts') diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index b55b4bace..626d55a7c 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -40,7 +40,7 @@ class PeerTubeEmbedApi { } private constructChannel () { - let channel = Channel.build({ window: window.parent, origin: '*', scope: this.embed.scope }) + const channel = Channel.build({ window: window.parent, origin: '*', scope: this.embed.scope }) channel.bind('play', (txn, params) => this.embed.player.play()) channel.bind('pause', (txn, params) => this.embed.player.pause()) @@ -82,8 +82,8 @@ class PeerTubeEmbedApi { let currentState: 'playing' | 'paused' | 'unstarted' = 'unstarted' setInterval(() => { - let position = this.element.currentTime - let volume = this.element.volume + const position = this.element.currentTime + const volume = this.element.volume this.channel.notify({ method: 'playbackStatusUpdate', @@ -114,8 +114,8 @@ class PeerTubeEmbedApi { } private loadWebTorrentResolutions () { - let resolutions = [] - let currentResolutionId = this.embed.player.webtorrent().getCurrentResolutionId() + const resolutions = [] + const currentResolutionId = this.embed.player.webtorrent().getCurrentResolutionId() for (const videoFile of this.embed.player.webtorrent().videoFiles) { let label = videoFile.resolution.label @@ -235,7 +235,7 @@ class PeerTubeEmbed { private loadParams () { try { - let params = new URL(window.location.toString()).searchParams + const params = new URL(window.location.toString()).searchParams this.autoplay = this.getParamToggle(params, 'autoplay') this.controls = this.getParamToggle(params, 'controls') -- cgit v1.2.3