Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

fix when relativeTime is undefined

Christian Feief661f3fd620
diff --git a/lib/youtube.js b/lib/youtube.js
index 9a0b4e9..980da51 100644
--- a/lib/youtube.js
+++ b/lib/youtube.js
@@ -82,6 +82,7 @@ export async function getVideosFor(channelName) {
}
function parseRelativeTime(relativeTime) {
+ if (!relativeTime) return
const now = new Date();
let match;