This commit is contained in:
Marek
2026-04-05 09:07:52 +02:00
parent d789a31642
commit 78b5b31ac4
2 changed files with 153 additions and 4 deletions

View File

@@ -1,2 +1,9 @@
// TODO: Nachrichten vom Content Script empfangen und an Server senden
console.log("Background Script geladen");
const SERVER_URL = "http://localhost:8000/videos";
browser.runtime.onMessage.addListener((video) => {
fetch(SERVER_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(video),
}).catch(() => {});
});