diff --git a/src/components/conditional-view.js b/src/components/conditional-view.js index d526636e..d35ad42c 100644 --- a/src/components/conditional-view.js +++ b/src/components/conditional-view.js @@ -33,7 +33,7 @@ export class ConditionalView extends LitElement { }); } getTargetSlot() { - let slot = this.slotName; + const slot = this.slotName; if (slot == "") { return "default"; } diff --git a/src/components/message-screen.js b/src/components/message-screen.js index ce8f8687..9ed3e1e4 100644 --- a/src/components/message-screen.js +++ b/src/components/message-screen.js @@ -40,21 +40,6 @@ export class MessageScreen extends LitElement { this.onSecondaryAction = () => {}; } - hasSlot(slotName) { - return Array.from(this.children).some((e) => { - e.slot === slotName; - }); - } - getTargetSlot() { - let slot = this.slotName; - if (slot == "") { - return "default"; - } - if (!this.hasSlot(slot)) { - return "default"; - } - return slot; - } render() { return html`