update
This commit is contained in:
9
browser_extension/api/background.js
Normal file
9
browser_extension/api/background.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const SERVER_URL = "http://marha.local:8000/videos";
|
||||
|
||||
browser.runtime.onMessage.addListener((videos) => {
|
||||
fetch(SERVER_URL, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(videos),
|
||||
}).catch(() => {});
|
||||
});
|
||||
Reference in New Issue
Block a user