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.
* @returns {Promise<JitsiLocalTrack[]>}
*/
export function createLocalTracksF(
options,
firePermissionPromptIsShownEvent,
store) {
options || (options = {}); // eslint-disable-line no-param-reassign
export function createLocalTracksF(options = {}, firePermissionPromptIsShownEvent, store) {
let { cameraDeviceId, micDeviceId } = options;
if (typeof APP !== 'undefined') {