fix javlibrary genre route because some spans may not have class attr in individual pages (#14334)

This commit is contained in:
KTachibanaM 2024-01-28 11:28:33 -08:00 committed by GitHub
parent 0f6240e2d9
commit 00fecf46fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
});