2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-09 00:02:25 +03:00

fix: Fix body tags update

This commit is contained in:
Atinux
2017-11-06 13:23:12 +01:00
parent 7b082b179e
commit c747939c90
+1 -1
View File
@@ -14,7 +14,7 @@ export default function _updateTags (options = {}) {
*/
return function updateTags (type, tags, headTag, bodyTag) {
const oldHeadTags = toArray(headTag.querySelectorAll(`${type}[${attribute}]`))
const oldBodyTags = toArray(bodyTag.querySelectorAll(`${type}[${attribute}][body="true"]`))
const oldBodyTags = toArray(bodyTag.querySelectorAll(`${type}[${attribute}][data-body="true"]`))
const newTags = []
let indexToDelete