this post was submitted on 05 Jul 2023
27 points (100.0% liked)
wefwef
4227 readers
1 users here now
wefwef is now Voyager! Subscribe to [email protected].
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It is possible in modern browsers. You can add a url hash when opening the image viewer and add a listener to the window.onhashchange event to close the viewer. I believe there's a jQuery polyfill as well.