The image preview modal is broken. It happens in Basilisk and also in Pale Moon.
Steps to reproduce:
- Open Basilisk or Pale Moon.
- Go to Kagi Images (e.g., https://kagi.com/images) and run any image search.
- Click an image result to open the preview modal.
Result: the preview doesn’t load and the console shows loadImage.decode is not a function. Those browsers don’t implement HTMLImageElement.decode(), so the call throws and breaks the flow.
A simple fallback would fix it:
if (img.decode) {
img.decode().then(show).catch(() => img.addEventListener("load", show, { once: true }));
} else {
img.addEventListener("load", show, { once: true });
}