From d393ba26eff733591a00e16ab430288a05cc2686 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 18 Jun 2023 16:00:40 +0000 Subject: [PATCH] search bar fixes :3 --- src/libpoketube/init/pages-channel-and-download.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index 7bfa1f70..c626678f 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -68,9 +68,9 @@ module.exports = function (app, config, renderTemplate) { const poketube_universe_value = "poketube_smart_search"; - if (query.includes("youtube.com")) { + if (query?.includes("youtube.com")) { try { - var videoid = query.split("v="); + var videoid = query?.split("v="); res.redirect("/watch?v=" + videoid[1]); } catch {