Merge pull request #5698 from antobinary/meta-params-html5

HTML5: Process only meta params from the list of the handled ones
This commit is contained in:
Anton Georgiev 2018-06-18 10:59:58 -04:00 committed by GitHub
commit 30c67996a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,14 @@ export function joinRouteHandler(nextState, replace, callback) {
const metakeys = metadata.length
? metadata.reduce((acc, meta) => {
const key = Object.keys(meta).shift();
const handledHTML5Parameters = [
'html5autoswaplayout', 'html5autosharewebcam', 'html5hidepresentation',
];
if (handledHTML5Parameters.indexOf(key) === -1) {
return acc;
}
/* this reducer transforms array of objects in a single object and
forces the metadata a be boolean value */
let value = meta[key];