diff --git a/fluxer_app/src/features/voice/components/modals/ScreenSharePickerModal.tsx b/fluxer_app/src/features/voice/components/modals/ScreenSharePickerModal.tsx index b594dfa70..85f1cd9da 100644 --- a/fluxer_app/src/features/voice/components/modals/ScreenSharePickerModal.tsx +++ b/fluxer_app/src/features/voice/components/modals/ScreenSharePickerModal.tsx @@ -474,6 +474,10 @@ export async function preloadScreenSharePickerSources(): Promise { + if (!getElectronAPI()) { + await startConfiguredDisplayScreenShare(null); + return; + } ModalCommands.push( ModalCommands.modal(() => ( @@ -484,6 +488,10 @@ export async function openScreenSharePickerModal(): Promise { export async function openScreenShareSourceSwitcherModal( options: {initialTab?: ScreenSharePickerTab} = {}, ): Promise { + if (!getElectronAPI()) { + await switchConfiguredDisplayScreenShare(null); + return; + } ModalCommands.push( ModalCommands.modal(() => (