Jason Hunter 3 år sedan
förälder
incheckning
28a2a3816a
2 ändrade filer med 1 tillägg och 8 borttagningar
  1. 0 7
      web/src/components/VideoPlayer.jsx
  2. 1 1
      web/src/routes/Recording.jsx

+ 0 - 7
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());
-      });
     });
   }
 

+ 1 - 1
web/src/routes/Recording.jsx

@@ -43,7 +43,7 @@ export default function Recording({ camera, date, hour }) {
       </Link>
     );
 
-    if (item.date == selectedKey) {
+    if (item.date === selectedKey) {
       for (const recording of item.recordings) {
         buttons.push(
           <Button href={`/recordings/${camera}/${item.date}/${recording.hour}`} type="text">