Unverified Commit 3b66fd3b authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Remove invalid meta type (#7549)

parent d1b7b829
...@@ -54,7 +54,7 @@ function onlyReactElement( ...@@ -54,7 +54,7 @@ function onlyReactElement(
return list.concat(child) return list.concat(child)
} }
const METATYPES = ['name', 'httpEquiv', 'charSet', 'viewport', 'itemProp'] const METATYPES = ['name', 'httpEquiv', 'charSet', 'itemProp']
/* /*
returns a function for filtering head child elements returns a function for filtering head child elements
...@@ -84,7 +84,7 @@ function unique() { ...@@ -84,7 +84,7 @@ function unique() {
const metatype = METATYPES[i] const metatype = METATYPES[i]
if (!h.props.hasOwnProperty(metatype)) continue if (!h.props.hasOwnProperty(metatype)) continue
if (metatype === 'charSet' || metatype === 'viewport') { if (metatype === 'charSet') {
if (metaTypes.has(metatype)) return false if (metaTypes.has(metatype)) return false
metaTypes.add(metatype) metaTypes.add(metatype)
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment