From 3e848500341e529a590a80cbd6388e2fee677e2a Mon Sep 17 00:00:00 2001 From: Vincenzo Ferrari Date: Thu, 10 Aug 2017 17:39:59 +0200 Subject: [PATCH] added support for updating head tag attributes --- src/client/updateClientMetaInfo.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/updateClientMetaInfo.js b/src/client/updateClientMetaInfo.js index 65976bb..c7ab4ac 100644 --- a/src/client/updateClientMetaInfo.js +++ b/src/client/updateClientMetaInfo.js @@ -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':