fix: address PR review comments
- Fix misleading comment about user gesture requirement in background.ts - Remove unused 'target' variable in /recording/stop endpoint - Fix /recording/cancel to not delete all recordings (handled by event) - Remove redundant security middlewares (CORS handles it)
This commit is contained in:
@@ -1110,7 +1110,7 @@ async function handleStartRecording(params: StartRecordingParams): Promise<Start
|
||||
// Ensure offscreen document exists
|
||||
await ensureOffscreenDocument()
|
||||
|
||||
// Get stream ID using chrome.tabCapture.getMediaStreamId (works without user gesture)
|
||||
// Get stream ID using chrome.tabCapture.getMediaStreamId (requires activeTab permission - user must click extension icon)
|
||||
const streamId = await new Promise<string>((resolve, reject) => {
|
||||
chrome.tabCapture.getMediaStreamId({ targetTabId: tabId }, (id) => {
|
||||
if (chrome.runtime.lastError) {
|
||||
|
||||
Reference in New Issue
Block a user