diff --git a/extension/scripts/index.js b/extension/scripts/index.js index a61b0f8..8c4772e 100644 --- a/extension/scripts/index.js +++ b/extension/scripts/index.js @@ -21,7 +21,10 @@ function overrideGdm () { const myDiscordAudioSink = await getAudioDevice('pipewire-screenaudio') id = myDiscordAudioSink.deviceId } catch (error) { - id = 'default' + return await navigator.mediaDevices.chromiumGetDisplayMedia({ + video: true, + audio: false + }) } const captureSystemAudioStream = await navigator.mediaDevices.getUserMedia({ audio: {