diff --git a/src/client/updaters/updateTags.js b/src/client/updaters/updateTags.js index 99db389d..017e8d5f 100644 --- a/src/client/updaters/updateTags.js +++ b/src/client/updaters/updateTags.js @@ -24,9 +24,9 @@ export default function _updateTags (options = {}) { for (const attr in tag) { if (tag.hasOwnProperty(attr)) { - if (attribute === 'innerHTML') { + if (attr === 'innerHTML') { newElement.innerHTML = tag.innerHTML - } else if (attribute === 'cssText') { + } else if (attr === 'cssText') { if (newElement.styleSheet) { newElement.styleSheet.cssText = tag.cssText } else {