Skip to content

Commit

Permalink
♻️ Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuragVasanwala committed Nov 2, 2023
1 parent 97c184f commit ff95895
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/stories-lightbox/src/web-stories-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class Lightbox {
this.player.addEventListener('navigation', (event) => {
const storyObject = this.stories[event.detail.index];
if (storyObject && storyObject.href !== document.location.href) {
//history.pushState({}, '', storyObject.href);
this.storyContentReady(storyObject, () => {
history.pushState({}, '', storyObject.href);

Check warning on line 62 in packages/stories-lightbox/src/web-stories-lightbox.js

View check run for this annotation

Codecov / codecov/patch

packages/stories-lightbox/src/web-stories-lightbox.js#L61-L62

Added lines #L61 - L62 were not covered by tests
});
Expand Down Expand Up @@ -122,7 +121,7 @@ class Lightbox {
);

cards.forEach((card) => {
card.addEventListener('click', async (event) => {
card.addEventListener('click', (event) => {
event.preventDefault();
const storyObject = this.stories.find(
(story) => story.href === card.querySelector('a').href
Expand Down

0 comments on commit ff95895

Please sign in to comment.