Switch to IPC channel for getDesktopCapturerSources
(#7782)
This commit is contained in:
parent
c3bb8cf3ef
commit
73899bb2e3
4 changed files with 13 additions and 7 deletions
|
@ -37,6 +37,7 @@ import Modal from '../../../Modal';
|
|||
import CallViewSidebar from './CallViewSidebar';
|
||||
import CallViewHeader from './CallView/CallViewHeader';
|
||||
import CallViewButtons from "./CallView/CallViewButtons";
|
||||
import PlatformPeg from "../../../PlatformPeg";
|
||||
|
||||
interface IProps {
|
||||
// The call for us to display
|
||||
|
@ -270,7 +271,7 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||
if (this.state.screensharing) {
|
||||
isScreensharing = await this.props.call.setScreensharingEnabled(false);
|
||||
} else {
|
||||
if (window.electron?.getDesktopCapturerSources) {
|
||||
if (PlatformPeg.get().supportsDesktopCapturer()) {
|
||||
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
|
||||
const [source] = await finished;
|
||||
if (!source) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue