update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const SERVER_URL = "http://marha.local:8000/videos";
|
||||
const SERVER_BASE = "http://marha.local:8000";
|
||||
|
||||
browser.runtime.onMessage.addListener((video) => {
|
||||
fetch(SERVER_URL, {
|
||||
browser.runtime.onMessage.addListener(({ profileId, video }) => {
|
||||
fetch(`${SERVER_BASE}/profiles/${profileId}/videos`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(video),
|
||||
|
||||
Reference in New Issue
Block a user