Fix parsing of srcset images (#241)
This commit is contained in:
parent
ea0e8d5e3c
commit
672f471e12
|
@ -787,10 +787,10 @@ internal class ImageCandidates(
|
|||
}
|
||||
.second
|
||||
|
||||
if (setCandidate.isNotBlank()) {
|
||||
return StringUtil.resolve(baseUrl, setCandidate)
|
||||
}
|
||||
return StringUtil.resolve(baseUrl, absSrc)
|
||||
return StringUtil.resolve(
|
||||
baseUrl,
|
||||
setCandidate.takeIf { it.isNotBlank() } ?: absSrc
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user