fix: 看雪无Topic只获取精华帖报错 (#4474)
This commit is contained in:
parent
97473dae5c
commit
44312f624f
|
|
@ -83,7 +83,7 @@ module.exports = async (ctx) => {
|
|||
item = $(item);
|
||||
|
||||
const src = item.attr('src');
|
||||
if (!src.startsWith('https://') && !src.startsWith('http://')) {
|
||||
if (typeof src !== 'undefined' && !src.startsWith('https://') && !src.startsWith('http://')) {
|
||||
item.attr('src', `https://bbs.pediy.com/${src}`);
|
||||
}
|
||||
item.attr('referrerpolicy', 'no-referrer');
|
||||
|
|
|
|||
Loading…
Reference in New Issue