Make web use the redux settings/profile
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
ab7e572162
commit
959db3a665
@@ -18,3 +18,27 @@ export function getJitsiMeetGlobalNS() {
|
||||
|
||||
return window.JitsiMeetJS.app;
|
||||
}
|
||||
|
||||
/**
|
||||
* A helper function that behaves similar to Object.assign, but only reassigns a
|
||||
* property in target if it's defined in source.
|
||||
*
|
||||
* @param {Object} target - The target object to assign the values into.
|
||||
* @param {Object} source - The source object.
|
||||
* @returns {Object}
|
||||
*/
|
||||
export function assignIfDefined(target: Object, source: Object) {
|
||||
const to = Object(target);
|
||||
|
||||
for (const nextKey in source) {
|
||||
if (source.hasOwnProperty(nextKey)) {
|
||||
const value = source[nextKey];
|
||||
|
||||
if (typeof value !== 'undefined') {
|
||||
to[nextKey] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return to;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user