Various tweaks, fixes and updated documentation.

This commit is contained in:
2022-07-27 20:44:54 +00:00
parent 6e5a1c18a3
commit d1bc1fb7a2
16 changed files with 611 additions and 2730 deletions

View File

@@ -256,14 +256,15 @@ class PopupCardEditor extends LitElement {
}
await window.browser_mod.connectionPromise;
if (!customElements.get("popup-card-editor"))
if (!customElements.get("popup-card-editor")) {
customElements.define("popup-card-editor", PopupCardEditor);
(window as any).customCards = (window as any).customCards || [];
(window as any).customCards.push({
type: "popup-card",
name: "Popup card",
preview: false,
description:
"Replace the more-info dialog for a given entity in the view that includes this card. (Browser Mod)",
});
(window as any).customCards = (window as any).customCards || [];
(window as any).customCards.push({
type: "popup-card",
name: "Popup card",
preview: false,
description:
"Replace the more-info dialog for a given entity in the view that includes this card. (Browser Mod)",
});
}
})();