Photoswipe close gallery button code -


i have tried close photoswipe screen gallery using history.go(-1); takes me previous screen gallery was. how can close photoswipe screen gallery using code staying in page call gallery? in advance.

i managed line:

window.code.photoswipe.activeinstances[0].instance.hide(); 

Comments