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

Fix: check correctly the attribute we want to set

This commit is contained in:
jeerbl
2017-02-21 14:44:14 +01:00
parent 81d01390ab
commit 0a24a67ca9
+2 -2
View File
@@ -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 {