This commit is contained in:
partisan 2024-10-17 10:22:31 +02:00
parent 4bd95062a7
commit 1721db85a7

View file

@ -231,8 +231,7 @@
const templateData = document.getElementById('template-data');
const hardCacheEnabled = templateData.getAttribute('data-hard-cache-enabled') === 'true';
console.log(!hardCacheEnabled)
if (!hardCacheEnabled) {
if (hardCacheEnabled) {
// Hard cache is disabled, so skip polling and load images directly
const images = document.querySelectorAll("img[data-id]");
images.forEach((img) => {