2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-10 21:02:27 +03:00

Merge pull request #59 from jeerbl/master

Fix: check correctly the attribute we want to set
This commit is contained in:
Sébastien Chopin
2017-03-06 18:49:15 +01:00
committed by GitHub
+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 {