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

added support for updating head tag attributes

This commit is contained in:
Vincenzo Ferrari
2017-08-10 17:39:59 +02:00
committed by GitHub
parent 5540ebc302
commit 3e84850034
+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':