We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc3889 commit ee20d46Copy full SHA for ee20d46
popup/index.js
@@ -332,8 +332,10 @@ function createScriptButton(script, isFavorite = false) {
332
tooltip.classList.add("tooltiptext");
333
tooltip.innerHTML = t(script.description);
334
335
- if (script.description?.img) {
336
- tooltip.innerHTML += `<img src="${script.description.img}"/>`;
+ let img = script.description?.img;
+ if (img) {
337
+ if (!img.startsWith("http")) img = ".." + img; // /script/abc.png => ../script/abc.png
338
+ tooltip.innerHTML += `<img src="${img}"/>`;
339
}
340
if (script.description?.video) {
341
let video = document.createElement("video");
0 commit comments