未验证 提交 3b66fd3b 编写于 作者: J Joe Haddad 提交者: GitHub

Remove invalid meta type (#7549)

上级 d1b7b829
......@@ -54,7 +54,7 @@ function onlyReactElement(
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
......@@ -84,7 +84,7 @@ function unique() {
const metatype = METATYPES[i]
if (!h.props.hasOwnProperty(metatype)) continue
if (metatype === 'charSet' || metatype === 'viewport') {
if (metatype === 'charSet') {
if (metaTypes.has(metatype)) return false
metaTypes.add(metatype)
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册