misc: use default values for parameters
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
5cfae2c419
commit
385669cbb8
@@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user