A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
fix: patch video with saved video
Christian Fei3cbb9af10a5d
diff --git a/lib/repository.js b/lib/repository.jsindex acb6ecc..22cf889 100644--- a/lib/repository.js+++ b/lib/repository.js@@ -212,7 +212,7 @@ export default class Repository {patchVideo (video) {const savedVideo = this.getVideo(video.id)- if (savedVideo) return savedVideo+ if (savedVideo) return Object.assign(video, savedVideo)return Object.assign(video, { addedAt: Date.now() })}