From 00fecf46fc92bf6c36b8a0e3cd4347375f97e1ab Mon Sep 17 00:00:00 2001 From: KTachibanaM Date: Sun, 28 Jan 2024 11:28:33 -0800 Subject: [PATCH] fix javlibrary genre route because some spans may not have class attr in individual pages (#14334) --- lib/v2/javlibrary/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/javlibrary/utils.js b/lib/v2/javlibrary/utils.js index 21853f457..b55dcebaf 100644 --- a/lib/v2/javlibrary/utils.js +++ b/lib/v2/javlibrary/utils.js @@ -55,7 +55,7 @@ module.exports = { content('.icn_edit, .btn_videoplayer, a[rel="bookmark"]').remove(); content('span').each(function () { - if (content(this).attr('class').startsWith('icn_')) { + if (content(this).attr('class')?.startsWith('icn_')) { content(this).remove(); } });