mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 02:50:34 +03:00
Merge pull request #59 from jeerbl/master
Fix: check correctly the attribute we want to set
This commit is contained in:
@@ -24,9 +24,9 @@ export default function _updateTags (options = {}) {
|
|||||||
|
|
||||||
for (const attr in tag) {
|
for (const attr in tag) {
|
||||||
if (tag.hasOwnProperty(attr)) {
|
if (tag.hasOwnProperty(attr)) {
|
||||||
if (attribute === 'innerHTML') {
|
if (attr === 'innerHTML') {
|
||||||
newElement.innerHTML = tag.innerHTML
|
newElement.innerHTML = tag.innerHTML
|
||||||
} else if (attribute === 'cssText') {
|
} else if (attr === 'cssText') {
|
||||||
if (newElement.styleSheet) {
|
if (newElement.styleSheet) {
|
||||||
newElement.styleSheet.cssText = tag.cssText
|
newElement.styleSheet.cssText = tag.cssText
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user