From 4e983710eff765aa16beef53ce55c553d4d9e10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 28 Dec 2023 21:28:02 +0000 Subject: [PATCH] move sb_button to "img" --- public/{ => img}/sb_button.png | 0 public/manifest.json | 2 +- src/main.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename public/{ => img}/sb_button.png (100%) diff --git a/public/sb_button.png b/public/img/sb_button.png similarity index 100% rename from public/sb_button.png rename to public/img/sb_button.png diff --git a/public/manifest.json b/public/manifest.json index 09c2bc9..406c87a 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -17,7 +17,7 @@ ], "web_accessible_resources": [ { - "resources": ["sb_button.png"], + "resources": ["img/sb_button.png"], "matches": ["*://*.lenameyerlandrut-fanclub.de/*"] } ] diff --git a/src/main.ts b/src/main.ts index a65c12f..1d25869 100644 --- a/src/main.ts +++ b/src/main.ts @@ -80,7 +80,7 @@ async function process_text(text: string): Promise { btn.style.setProperty("margin-right", "4px"); const img = document.createElement("img"); - img.setAttribute("src", chrome.runtime.getURL("sb_button.png")); + img.setAttribute("src", chrome.runtime.getURL("img/sb_button.png")); img.style.setProperty("vertical-align", "middle"); btn.addEventListener("click", async (event) => {