mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 19:30:35 +03:00
fix: use simple polyfilled includes method
This commit is contained in:
@@ -52,7 +52,7 @@ export default function updateTag(appId, { attribute, tagIDKeyName } = {}, type,
|
|||||||
const _attr = includes(dataAttributes, attr)
|
const _attr = includes(dataAttributes, attr)
|
||||||
? `data-${attr}`
|
? `data-${attr}`
|
||||||
: attr
|
: attr
|
||||||
const value = isUndefined(tag[attr]) || booleanHtmlAttributes.includes(attr) ? '' : tag[attr]
|
const value = isUndefined(tag[attr]) || includes(booleanHtmlAttributes, attr) ? '' : tag[attr]
|
||||||
newElement.setAttribute(_attr, value)
|
newElement.setAttribute(_attr, value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user