mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 21:10:33 +03:00
fix: ignore cssText for coverage
This commit is contained in:
@@ -39,6 +39,7 @@ export default function updateTag({ attribute, tagIDKeyName } = {}, type, tags,
|
|||||||
newElement.innerHTML = tag.innerHTML
|
newElement.innerHTML = tag.innerHTML
|
||||||
} else if (attr === 'cssText') {
|
} else if (attr === 'cssText') {
|
||||||
if (newElement.styleSheet) {
|
if (newElement.styleSheet) {
|
||||||
|
/* istanbul ignore next */
|
||||||
newElement.styleSheet.cssText = tag.cssText
|
newElement.styleSheet.cssText = tag.cssText
|
||||||
} else {
|
} else {
|
||||||
newElement.appendChild(document.createTextNode(tag.cssText))
|
newElement.appendChild(document.createTextNode(tag.cssText))
|
||||||
|
|||||||
Reference in New Issue
Block a user