mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(voice): skip the screen-share picker modal on web (#2393)
This commit is contained in:
1 parent
d04ace5789
commit
8402eb53c8
1 file changed
+8
@@ -474,6 +474,10 @@ export async function preloadScreenSharePickerSources(): Promise<ScreenSharePick
|
||||
}
|
||||
|
||||
export async function openScreenSharePickerModal(): Promise<void> {
|
||||
if (!getElectronAPI()) {
|
||||
await startConfiguredDisplayScreenShare(null);
|
||||
return;
|
||||
}
|
||||
ModalCommands.push(
|
||||
ModalCommands.modal(() => (
|
||||
<ScreenSharePickerModalPreloader data-flx="voice.screen-share-picker-modal.open-screen-share-picker-modal.preloader" />
|
||||
@@ -484,6 +488,10 @@ export async function openScreenSharePickerModal(): Promise<void> {
|
||||
export async function openScreenShareSourceSwitcherModal(
|
||||
options: {initialTab?: ScreenSharePickerTab} = {},
|
||||
): Promise<void> {
|
||||
if (!getElectronAPI()) {
|
||||
await switchConfiguredDisplayScreenShare(null);
|
||||
return;
|
||||
}
|
||||
ModalCommands.push(
|
||||
ModalCommands.modal(() => (
|
||||
<ScreenSharePickerModalPreloader
|
||||
|
||||
Reference in new issue
Block a user