bugfixes + full synchro w/o button

This commit is contained in:
Kacper Maj 2021-01-27 22:10:34 +01:00
parent 2e2f4c808f
commit 89ef24c4a2

View File

@ -1,6 +1,7 @@
const videos = [];
const addVideo = ({ room, videoID }) => {
if (videoID === 'ttps://www.youtube.com/watch') return;
const videoIsTheSame = videos.find((obj) => obj.videoID === videoID);
if (videoIsTheSame) return;
const index = videos.findIndex((object) => object.room === room);