Skip to content

Commit

Permalink
Destroy media player when photoswipe is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
floogulinc committed Feb 2, 2025
1 parent 957f703 commit 859bcce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/photoswipe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ export class PhotoswipeService {
});

pswp.on('close', () => {
handleDestroyMedia(pswp.currSlide.content);
this.themeService.removeBlackThemeColorMetaTag();
locSub.unsubscribe();
if(window.history.state.pswp) {
Expand Down

0 comments on commit 859bcce

Please sign in to comment.