Skip to content

Commit

Permalink
chore(img): return targetUrl as given href (jackyzha0#916)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm authored and qazxcdswe123 committed Apr 18, 2024
1 parent 90f564b commit 187ec0a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions quartz/components/scripts/popover.inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ async function mouseEnterHandler(
switch (contentTypeCategory) {
case "image":
const img = document.createElement("img")

response.blob().then((blob) => {
img.src = URL.createObjectURL(blob)
})
img.src = targetUrl.toString()
img.alt = targetUrl.pathname

popoverInner.appendChild(img)
Expand Down

0 comments on commit 187ec0a

Please sign in to comment.