mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-12 12:30:47 +00:00
Add QR code element (#19155)
* Add QR code element * fixes * move to workflow * limit webpack imports
This commit is contained in:
@@ -95,6 +95,15 @@ class HaMarkdownElement extends ReactiveElement {
|
||||
}
|
||||
node.firstElementChild!.replaceWith(alertNote);
|
||||
}
|
||||
} else if (
|
||||
node instanceof HTMLElement &&
|
||||
["ha-alert", "ha-qr-code", "ha-icon", "ha-svg-icon"].includes(
|
||||
node.localName
|
||||
)
|
||||
) {
|
||||
import(
|
||||
/* webpackInclude: /(ha-alert)|(ha-qr-code)|(ha-icon)|(ha-svg-icon)/ */ `./${node.localName}`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user