From fab6f2fd73bbaae31301aef30f11a413ac9c9ec4 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Fri, 29 Mar 2024 15:13:41 +0000 Subject: [PATCH] use ?. --- src/libpoketube/init/pages-video.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 31ff04c6..819df5de 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -357,9 +357,9 @@ module.exports = function (app, config, renderTemplate) { engagement, comments: inv_comments, vid: inv_vid, - } = await INNERTUBE.getYouTubeApiVideo(f, v); + } = await INNERTUBE?.getYouTubeApiVideo(f, v); - const data = await INNERTUBE.getYouTubeApiVideo(f, v); + const data = await INNERTUBE?.getYouTubeApiVideo(f, v); const color = data.color; const color2 = data.color2; const desc = data?.desc;