move sb_button to "img"

This commit is contained in:
Jörn-Michael Miehe 2023-12-28 21:28:02 +00:00
parent 4f27683c0b
commit 4e983710ef
3 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@
],
"web_accessible_resources": [
{
"resources": ["sb_button.png"],
"resources": ["img/sb_button.png"],
"matches": ["*://*.lenameyerlandrut-fanclub.de/*"]
}
]

View file

@ -80,7 +80,7 @@ async function process_text(text: string): Promise<string> {
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) => {