From 911eebf02f9b0cbb5d213e8b8410fbbbdd98c33b Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 27 Sep 2023 18:14:47 +0000 Subject: [PATCH] fix some stuff :3 --- src/libpoketube/ptutils/libpt-coreutils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/ptutils/libpt-coreutils.js b/src/libpoketube/ptutils/libpt-coreutils.js index c4787820..013d8224 100644 --- a/src/libpoketube/ptutils/libpt-coreutils.js +++ b/src/libpoketube/ptutils/libpt-coreutils.js @@ -28,9 +28,9 @@ function convert(value) { } function getFirstLine(text) { - var index = text.indexOf("
"); + var index = text?.indexOf("
"); if (index === -1) index = undefined; - return text.substring(0, index); + return text?.substring(0, index); } function capitalizeFirstLetter(string) {