From 1c9ae58d69d92b7c206d45715b8b5f7fc73f7ef9 Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Tue, 9 Jul 2024 19:18:16 +0200 Subject: [PATCH] fix: actually rebuild --- public/js_compiled/pages/reader.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/js_compiled/pages/reader.js b/public/js_compiled/pages/reader.js index 0f87857..d70c73a 100644 --- a/public/js_compiled/pages/reader.js +++ b/public/js_compiled/pages/reader.js @@ -463,14 +463,15 @@ function doImages() { img.setAttribute("alt", "Page ".concat(Number(clone.length - i))); img.setAttribute("data-i", clone.length - i); img.style.minHeight = "30vh"; + var referer = location.href.includes("mangasee") ? "mangasee" : location.href.includes("manganelo") ? "manganelo" : location.href.includes("mangahere") ? "mangahere" : "null"; // Set source - var proxySrc = "/proxy-image?url=".concat(encodeURIComponent(url), "&referer=").concat(location.href.includes("mangasee") ? "mangasee" : location.href.includes("manganelo") ? "manganelo" : location.href.includes("mangahere") ? "mangahere" : "null").concat(bypassCache ? "&c=".concat(+Date.now()) : ""); + var proxySrc = "/proxy-image?url=".concat(encodeURIComponent(url), "&referer=").concat(referer).concat(bypassCache ? "&c=".concat(+Date.now()) : ""); var isBookMode = getSettings()["double-pages"] === "yes"; if (isBookMode) { - img.setAttribute("src", url.includes("mangadex") ? proxySrc : url); + img.setAttribute("src", url); } else { - img.setAttribute("data-src", url.includes("mangadex") ? proxySrc : url); + img.setAttribute("data-src", url); img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="; } img.addEventListener("error", function () {