Skip to content

Commit

Permalink
Fix #97
Browse files Browse the repository at this point in the history
  • Loading branch information
OctoNezd committed Jan 5, 2024
1 parent d8170f5 commit 4130885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/expandos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ export default class Expandos extends OLFeature {

thumbnailDiv.addEventListener("click", async (e) => {
e.preventDefault();
preventBodyScroll();
const expando_btn_R =
post.querySelector<HTMLButtonElement>(".expando-button");
const gallery = await this.getGallery(post);
this.activeGallery = gallery;
if (gallery) {
preventBodyScroll();
history.pushState({"galleryId": post.dataset.fullname}, '', "#gallery");
gallery.openGallery();
} else if (expando_btn_R) {
Expand Down

0 comments on commit 4130885

Please sign in to comment.