2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-11 16:12:24 +03:00

Merge pull request #2 from wilk/patch-1

Patch 1
This commit is contained in:
Vincenzo Ferrari
2017-08-10 17:47:54 +02:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -26,8 +26,13 @@ export default function _updateClientMetaInfo (options = {}) {
break
// update attributes
case 'htmlAttrs':
updateTagAttributes(options)(newInfo[key], htmlTag)
break
case 'bodyAttrs':
updateTagAttributes(options)(newInfo[key], key === 'htmlAttrs' ? htmlTag : document.getElementsByTagName('body')[0])
updateTagAttributes(options)(newInfo[key], document.getElementsByTagName('body')[0])
break
case 'headAttrs':
updateTagAttributes(options)(newInfo[key], document.getElementsByTagName('head')[0])
break
// ignore these
case 'titleChunk':
+1
View File
@@ -16,6 +16,7 @@ export default function _generateServerInjector (options = {}) {
return titleGenerator(options)(type, data)
case 'htmlAttrs':
case 'bodyAttrs':
case 'headAttrs':
return attrsGenerator(options)(type, data)
default:
return tagGenerator(options)(type, data)