Aaron Pham
2024-02-23 129e878b29dc53a1327d88089fa5876b0b1cc764
chore(img): return targetUrl as given href (#916)

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
1 files modified
5 ■■■■ changed files
quartz/components/scripts/popover.inline.ts 5 ●●●● patch | view | raw | blame | history
quartz/components/scripts/popover.inline.ts
@@ -61,10 +61,7 @@
  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)