added placeholders on reader
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user