mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix head.njk
This commit is contained in:
@@ -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.
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user