Skip to content

Commit 3212d69

Browse files
committed
fix relative img path
1 parent ee20d46 commit 3212d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

popup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function createScriptButton(script, isFavorite = false) {
334334

335335
let img = script.description?.img;
336336
if (img) {
337-
if (!img.startsWith("http")) img = ".." + img; // /script/abc.png => ../script/abc.png
337+
if (img.startsWith("/scripts")) img = ".." + img; // /scripts/abc.png => ../scripts/abc.png
338338
tooltip.innerHTML += `<img src="${img}"/>`;
339339
}
340340
if (script.description?.video) {

0 commit comments

Comments
 (0)