2
0
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:
pimlie
2019-06-10 12:28:37 +02:00
parent 15affe3342
commit 623970d5fb
+1 -1
View File
@@ -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)
}
}