added placeholders on reader

This commit is contained in:
2025-12-11 19:20:35 +01:00
parent 79f1733aef
commit f249bfbab1
2 changed files with 8 additions and 0 deletions

View File

@@ -294,6 +294,13 @@ function createImageElement(page, index) {
img.dataset.index = index;
const url = buildProxyUrl(page.url, page.headers);
const placeholder = "/public/assets/placeholder.svg";
img.onerror = () => {
if (img.src !== placeholder) {
img.src = placeholder;
}
};
if (config.manga.mode === 'longstrip' && index > 0) {
img.classList.add('longstrip-fit');