mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-16 10:20:33 +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)
|
||||
? `data-${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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user