fix: fix 404s from templates trying to load bad image urls

This commit is contained in:
Andy Burke 2025-11-09 13:33:14 -08:00
parent 0bc303a762
commit 19afb7f9fa
5 changed files with 8 additions and 3 deletions

View file

@ -379,7 +379,7 @@
<template id="server-list-entry-template">
<div class="server-list-entry">
<a href="${ server.url }">
<img class="server-icon" src="${ server.icon ?? ( server.url + '/favicon.ico' ) }" alt="${ server.name ?? server.url } icon" style="${ server.icon_background ? `--icon-background: ${ server.icon_background };` : '' }" />
<img class="server-icon" src="${ server.icon ?? ( server.url + '/favicon.ico' ) }" alt="${ server.name ?? server.url } icon" style="${ server.icon_background ? `--icon-background: ${ server.icon_background };` : '' }" loading="lazy" />
<div class="server-name">${ server.name ?? server.url }</div>
</a>
</div>