From 28a2a3816a5a8fe50551413298105d26c9cabf4b Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Fri, 28 May 2021 13:25:49 -0400 Subject: [PATCH] lint fixes --- web/src/components/VideoPlayer.jsx | 7 ------- web/src/routes/Recording.jsx | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/web/src/components/VideoPlayer.jsx b/web/src/components/VideoPlayer.jsx index a2934d8d8..b21a9e012 100644 --- a/web/src/components/VideoPlayer.jsx +++ b/web/src/components/VideoPlayer.jsx @@ -15,15 +15,8 @@ export default class VideoPlayer extends Component { ...defaultOptions, ...options, }; - const self = this; this.player = videojs(this.videoNode, videoJsOptions, function onPlayerReady() { onReady(this); - this.on('error', () => { - console.error('VIDEOJS: ERROR: currentSources:', this.currentSources()); - }); - this.on('play', () => { - console.log('VIDEOJS: currentSources:', this.currentSources()); - }); }); } diff --git a/web/src/routes/Recording.jsx b/web/src/routes/Recording.jsx index 5f7e88e84..e1cb77a7a 100644 --- a/web/src/routes/Recording.jsx +++ b/web/src/routes/Recording.jsx @@ -43,7 +43,7 @@ export default function Recording({ camera, date, hour }) { ); - if (item.date == selectedKey) { + if (item.date === selectedKey) { for (const recording of item.recordings) { buttons.push(