mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
chore(img): return targetUrl as given href (#916)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
parent
96c7076fb5
commit
129e878b29
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue