diff --git a/src/client/app/composables/head.ts b/src/client/app/composables/head.ts index efccd208..d0000a3c 100644 --- a/src/client/app/composables/head.ts +++ b/src/client/app/composables/head.ts @@ -18,8 +18,9 @@ export function useUpdateHead(route: Route, siteDataByRouteRef: Ref) { isFirstUpdate = false newTags.forEach((tag) => { const selector = toSelector(tag[0], tag[1]) + const headEl = createHeadElement(tag) ;[...document.querySelectorAll(selector)].some((el) => { - if (el.isEqualNode(createHeadElement(tag))) { + if (el.isEqualNode(headEl)) { managedHeadElements.push(el as HTMLElement) return true }