From 6e05c11292dda43aafd67e5912fcd3d26ad54f23 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 24 Dec 2022 10:51:44 +0000 Subject: [PATCH] format some code --- src/libpoketube/init/pages-channel-and-download.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index feca5584..51d63a80 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -69,6 +69,7 @@ module.exports = function (app, config, renderTemplate) { if (req.query.continuation) { var continuation = req.query.continuation; } + if (!req.query.continuation) { var continuation = ""; } @@ -121,9 +122,11 @@ module.exports = function (app, config, renderTemplate) { } catch { k = " "; } + if (req.query.continuation) { var continuation = req.query.continuation; } + if (!req.query.continuation) { var continuation = ""; } @@ -156,11 +159,13 @@ module.exports = function (app, config, renderTemplate) { const description = k.Channel.Contents.ItemSection.About.Description; var d = description.toString().replace(/\n/g, "
"); + if (d === "[object Object]") { var d = ""; } var dnoreplace = description.toString(); + if (dnoreplace === "[object Object]") { var dnoreplace = ""; }