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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user