This commit is contained in:
Marek
2026-04-05 14:54:10 +02:00
parent 7d66746969
commit 6bbadb69c7
11 changed files with 129 additions and 147 deletions

View File

@@ -1,9 +1,9 @@
const SERVER_URL = "http://localhost:8000/videos";
browser.runtime.onMessage.addListener((video) => {
browser.runtime.onMessage.addListener((videos) => {
fetch(SERVER_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(video),
body: JSON.stringify(videos),
}).catch(() => {});
});