Fix parsing of srcset images (#241)

This commit is contained in:
LA 2022-10-15 20:09:29 +08:00 committed by GitHub
parent ea0e8d5e3c
commit 672f471e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -787,10 +787,10 @@ internal class ImageCandidates(
} }
.second .second
if (setCandidate.isNotBlank()) { return StringUtil.resolve(
return StringUtil.resolve(baseUrl, setCandidate) baseUrl,
} setCandidate.takeIf { it.isNotBlank() } ?: absSrc
return StringUtil.resolve(baseUrl, absSrc) )
} }
} }