Skip to content

Commit

Permalink
Auto reload the page when the modal closes
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Dec 27, 2024
1 parent 6ad5993 commit 5def7a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/image-bulk-optimizer/image-bulk-optimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ document.addEventListener( 'DOMContentLoaded', () => {
doneButton.style.display = 'none'; // Hidden initially
doneButton.addEventListener( 'click', () => {
modal.remove();
window.location.reload();
} );

progressContainer.appendChild( progressBar );
Expand Down
2 changes: 1 addition & 1 deletion build/image-bulk-optimizer/image-bulk-optimizer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5def7a1

Please sign in to comment.