fix meta typos

This commit is contained in:
Pooya Parsa 2017-08-19 13:16:58 +04:30
parent 6fddf61ef7
commit a078a631eb

View File

@ -26,28 +26,28 @@ export default class MetaRenderer {
// Meta
if (Array.isArray(this.options.head.meta)) {
this.options.head.meta.forEach(meta => {
head += `<meta data-n-head="true" ${attrsStr(meta)} />`
head += `<meta data-n-head="true" ${attrsStr(meta)}/>`
})
}
// Links
if (Array.isArray(this.options.head.link)) {
this.options.head.link.forEach(link => {
head += `<link data-n-head="true" ${attrsStr(link)} " />`
head += `<link data-n-head="true" ${attrsStr(link)}/>`
})
}
// Style
if (Array.isArray(this.options.head.style)) {
this.options.head.link.forEach(style => {
head += `<style data-n-head="true" ${attrsStr(style, ['cssText'])} ">${style.cssText || ''}</style>`
this.options.head.style.forEach(style => {
head += `<style data-n-head="true" ${attrsStr(style, ['cssText'])}>${style.cssText || ''}</style>`
})
}
// Script
if (Array.isArray(this.options.head.script)) {
this.options.head.script.forEach(script => {
head += `<script data-n-head="true" ${attrsStr(script, ['innerHTML'])} ">${script.innerHTML || ''}</script>`
head += `<script data-n-head="true" ${attrsStr(script, ['innerHTML'])}>${script.innerHTML || ''}</script>`
})
}