Skip to content

Commit

Permalink
Hide preview button when in a preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Einenlum committed Mar 1, 2024
1 parent 0095e91 commit e1076dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ window.onload = function() {
previewButton.addEventListener('click', (e) => {
e.preventDefault();

previewButton.classList.add('hidden');
preview.classList.remove('hidden');
interval = replayText(preview);
});
Expand Down

0 comments on commit e1076dd

Please sign in to comment.