fix head.njk

This commit is contained in:
konnorrogers
2025-05-29 18:56:47 -04:00
parent 93ddb3b75b
commit 4dacfb66cd
2 changed files with 2 additions and 1 deletions

View File

@@ -38,6 +38,7 @@
if (!customElements.get("wa-page")) {
import("https://early.webawesome.com/webawesome@3.0.0-alpha.13/dist/components/page/page.js")
.catch((e) => {
console.error(e)
// known errors with dual registration. This is only a thing in the free repo.
})
}

View File

@@ -32,7 +32,7 @@ export async function discover(root: Document | Element | ShadowRoot) {
const rootIsWebAwesomeComponent = rootTagName?.startsWith('wa-');
const tags = [...root.querySelectorAll(':not(:defined)')]
.map(el => el.tagName.toLowerCase())
.filter(tag => tag.startsWith('wa-') && tag !== "wa-page");
.filter(tag => tag.startsWith('wa-'));
// If the root element is an undefined Web Awesome component, add it to the list
if (rootIsWebAwesomeComponent && !customElements.get(rootTagName)) {