Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
strseb committed Sep 11, 2024
1 parent 6bf4bfe commit 878976f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/conditional-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class ConditionalView extends LitElement {
});
}
getTargetSlot() {
let slot = this.slotName;
const slot = this.slotName;
if (slot == "") {
return "default";
}
Expand Down
15 changes: 0 additions & 15 deletions src/components/message-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
<vpn-titlebar title=${this.titleHeader}></vpn-titlebar>
Expand Down

0 comments on commit 878976f

Please sign in to comment.