Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[photos][web] Remove image loading comments

AswinAsok6394448e56b5
diff --git a/web/packages/gallery/components/viewer/photoswipe-core.ts b/web/packages/gallery/components/viewer/photoswipe-core.ts
index 7ffc2523d3..12e9cde027 100644
--- a/web/packages/gallery/components/viewer/photoswipe-core.ts
+++ b/web/packages/gallery/components/viewer/photoswipe-core.ts
@@ -629,12 +629,9 @@ export class FileViewerPhotoSwipe<
const image = content.element;
if (!(image instanceof HTMLImageElement)) return;
- // Show the transparency grid only once pixels are ready to render.
void image.decode().then(
() => image.classList.add("ente-image-decoded"),
- () => {
- // Failed images retain PhotoSwipe's error handling.
- },
+ () => undefined,
);
});