From e96416d1e6eecd01bd4c8f0094a64a40b02f6d6d Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 6 Sep 2024 18:01:28 +0200 Subject: [PATCH] ui: some debug for signup --- frontend/app/api_client.ts | 2 -- frontend/app/duck/user.js | 1 + frontend/app/svg/icons/chat-dots.svg | 4 ++++ spot/entrypoints/offscreen/main.js | 5 +++++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 frontend/app/svg/icons/chat-dots.svg diff --git a/frontend/app/api_client.ts b/frontend/app/api_client.ts index 10c1c2219..2a9394687 100644 --- a/frontend/app/api_client.ts +++ b/frontend/app/api_client.ts @@ -181,8 +181,6 @@ export default class APIClient { _path = _path.replace('PROJECT_ID', this.siteId + ''); } - console.log(edp, _path, init) - return fetch(edp + _path, init).then((response) => { if (response.ok) { return response; diff --git a/frontend/app/duck/user.js b/frontend/app/duck/user.js index 49bebf6fa..9b185c627 100644 --- a/frontend/app/duck/user.js +++ b/frontend/app/duck/user.js @@ -88,6 +88,7 @@ const reducer = (state = initialState, action = {}) => { case UPDATE_PASSWORD.SUCCESS: return state.set('passwordErrors', List()); case SIGNUP.SUCCESS: + console.log(action.data) return state .set('account', Account(action.data.user)) .set('scope', action.data.scopeState) diff --git a/frontend/app/svg/icons/chat-dots.svg b/frontend/app/svg/icons/chat-dots.svg new file mode 100644 index 000000000..1515ab8fe --- /dev/null +++ b/frontend/app/svg/icons/chat-dots.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/spot/entrypoints/offscreen/main.js b/spot/entrypoints/offscreen/main.js index 71c133e6d..948642041 100644 --- a/spot/entrypoints/offscreen/main.js +++ b/spot/entrypoints/offscreen/main.js @@ -229,6 +229,11 @@ class ScreenRecorder { this.audioTrack = this.createPlaceholderAudioTrack(); } + const existingAudioTracks = this.videoStream.getAudioTracks(); + if (existingAudioTracks.length > 0) { + existingAudioTracks.forEach(track => track.enabled = true); + } + return new MediaStream([ ...this.videoStream.getVideoTracks(), this.audioTrack,