web: start: clean some code

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-06-02 23:24:50 +02:00
commit 7b587f852e
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
9 changed files with 5 additions and 219 deletions

View file

@ -1,5 +1,3 @@
import { config } from '../../core/config.js'
const CSS = new URL('./date-display.css', import.meta.url).href
class DateDisplay extends HTMLElement {
@ -14,7 +12,6 @@ class DateDisplay extends HTMLElement {
<div class="date" id="date"></div>
<div class="agent">agent <span id="agent-url"></span></div>
`
this.shadowRoot.getElementById('agent-url').textContent = config.agent_url
this.#tick()
this.#interval = setInterval(() => this.#tick(), 1000)
}