Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(conference): Remove unused argument from _createDesktopTrack

Hristo Terezov2ab002650cc9
diff --git a/conference.js b/conference.js
index f5083e2dc3..a876d1d035 100644
--- a/conference.js
+++ b/conference.js
@@ -1399,28 +1399,19 @@ export default {
/**
* Creates desktop (screensharing) {@link JitsiLocalTrack}
*
- * @param {Object} [options] - Screen sharing options that will be passed to
- * createLocalTracks.
- * @param {Object} [options.desktopSharing]
- * @param {Object} [options.desktopStream] - An existing desktop stream to
- * use instead of creating a new desktop stream.
* @return {Promise.<JitsiLocalTrack>} - A Promise resolved with
* {@link JitsiLocalTrack} for the screensharing or rejected with
* {@link JitsiTrackError}.
*
* @private
*/
- _createDesktopTrack(options = {}) {
+ _createDesktopTrack() {
const didHaveVideo = !this.isLocalVideoMuted();
- const getDesktopStreamPromise = options.desktopStream
- ? Promise.resolve([ options.desktopStream ])
- : createLocalTracksF({
- desktopSharingSourceDevice: options.desktopSharingSources
- ? null : config._desktopSharingSourceDevice,
- desktopSharingSources: options.desktopSharingSources,
- devices: [ 'desktop' ]
- });
+ const getDesktopStreamPromise = createLocalTracksF({
+ desktopSharingSourceDevice: config._desktopSharingSourceDevice,
+ devices: [ 'desktop' ]
+ });
return getDesktopStreamPromise.then(desktopStreams => {
// Stores the "untoggle" handler which remembers whether was