diff --git a/spot/entrypoints/background.ts b/spot/entrypoints/background.ts index 3b64d3cc7..b393ca570 100644 --- a/spot/entrypoints/background.ts +++ b/spot/entrypoints/background.ts @@ -19,7 +19,7 @@ let checkBusy = false; export default defineBackground(() => { const CHECK_INT = 60 * 1000; const PING_INT = 30 * 1000; - const VER = "1.0.14"; + const VER = "1.0.21"; interface SpotObj { name: string; diff --git a/spot/entrypoints/offscreen/main.js b/spot/entrypoints/offscreen/main.js index 8c2a48840..8ab4cbe1d 100644 --- a/spot/entrypoints/offscreen/main.js +++ b/spot/entrypoints/offscreen/main.js @@ -41,10 +41,10 @@ function getRecordingSettings(qualityValue) { audio: true, video: { width: { - exact: width, + ideal: width, }, height: { - exact: height, + ideal: height, }, }, }; @@ -195,7 +195,7 @@ class ScreenRecorder { } async _getStream(type, streamId, useMicrophone = false, audioId) { - const constraints = this.settings; + const constraints = this.settings.constrains; this.videoStream = null; let microphoneStream = null; try { @@ -296,7 +296,7 @@ class ScreenRecorder { return resolve({ blob: null, mtype: null }); } setTimeout(() => { - resolve(this.getVideoData(iteration++)); + resolve(this.getVideoData(iteration + 1)); }, 100); } }); diff --git a/spot/utils/networkDebuggerTracking.ts b/spot/utils/networkDebuggerTracking.ts index 714ef10ea..487f23718 100644 --- a/spot/utils/networkDebuggerTracking.ts +++ b/spot/utils/networkDebuggerTracking.ts @@ -28,6 +28,7 @@ export function stopDebugger(tabId?: string | number) { potentialActiveTabs.forEach((tabId) => { chrome.debugger.detach({ tabId }); }); + chrome.debugger.onEvent.removeListener(handleRequestIntercept); potentialActiveTabs.length = 0; } }