update
This commit is contained in:
@@ -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(() => {});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user