Mercurial > code > home > repos > front-door-display
diff src/FdClock.ts @ 15:20d1fa4250c0
refactor
author | drewp@bigasterisk.com |
---|---|
date | Thu, 06 Jun 2024 17:52:28 -0700 |
parents | deb0c25655eb |
children | 472003015880 |
line wrap: on
line diff
--- a/src/FdClock.ts Thu Jun 06 17:51:38 2024 -0700 +++ b/src/FdClock.ts Thu Jun 06 17:52:28 2024 -0700 @@ -1,7 +1,8 @@ import { css, html, LitElement } from "lit"; import { shared } from "./shared"; +import { customElement } from "lit/decorators.js"; - +@customElement("fd-clock") export class FdClock extends LitElement { constructor() { super(); @@ -25,4 +26,3 @@ return html` <span class="t">${h}:${m.slice(0, 2)}:${s.slice(0, 2)}</span> `; } } -customElements.define("fd-clock", FdClock);