This commit is contained in:
Manav Rathi
2025-02-13 12:02:55 +05:30
parent 1980cb035e
commit 20bbdb131d

View File

@@ -336,8 +336,14 @@ export class FileViewerPhotoSwipe {
inner: pathWithIDAndTransform,
outlineID: "pswp__icn-info",
},
onClick: (e) => {
console.log("click", e);
onClick: (e, element, pswp) => {
const file = this.files[pswp.currIndex];
if (!file) {
assertionFailed();
return;
}
console.log("info", file);
},
});
});