misc: use default values for parameters

This commit is contained in:
Saúl Ibarra Corretgé 2020-01-28 11:04:46 +01:00 committed by Saúl Ibarra Corretgé
parent 5cfae2c419
commit 385669cbb8
1 changed files with 1 additions and 6 deletions

View File

@ -70,12 +70,7 @@ export async function createLocalPresenterTrack(options, desktopHeight) {
* is to execute and from which state such as {@code config} is to be retrieved. * is to execute and from which state such as {@code config} is to be retrieved.
* @returns {Promise<JitsiLocalTrack[]>} * @returns {Promise<JitsiLocalTrack[]>}
*/ */
export function createLocalTracksF( export function createLocalTracksF(options = {}, firePermissionPromptIsShownEvent, store) {
options,
firePermissionPromptIsShownEvent,
store) {
options || (options = {}); // eslint-disable-line no-param-reassign
let { cameraDeviceId, micDeviceId } = options; let { cameraDeviceId, micDeviceId } = options;
if (typeof APP !== 'undefined') { if (typeof APP !== 'undefined') {