2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-18 08:30:33 +03:00

fix: ignore cssText for coverage

This commit is contained in:
pimlie
2019-02-11 14:18:39 +01:00
parent 3631526d6d
commit e3fd8ab6b9
+1
View File
@@ -39,6 +39,7 @@ export default function updateTag({ attribute, tagIDKeyName } = {}, type, tags,
newElement.innerHTML = tag.innerHTML
} else if (attr === 'cssText') {
if (newElement.styleSheet) {
/* istanbul ignore next */
newElement.styleSheet.cssText = tag.cssText
} else {
newElement.appendChild(document.createTextNode(tag.cssText))