Commit 89279b51 by ramdayalmunda

added custom fetch query to send request from background.js

parent a5ffea72
...@@ -377,7 +377,8 @@ async function resumeRecording() { ...@@ -377,7 +377,8 @@ async function resumeRecording() {
async function stopRecording() { async function stopRecording() {
try { try {
await api.post('/tutor-shot/finalize', { _id: tutorShotOid }, { headers: { userid: userDetails.uid } }) console.log('to stop recording')
// await api.post('/tutor-shot/finalize', { _id: tutorShotOid }, { headers: { userid: userDetails.uid } })
await chrome.runtime.sendMessage({ action: "stopRecording" }) await chrome.runtime.sendMessage({ action: "stopRecording" })
} catch (err) { } catch (err) {
console.log(err) console.log(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment