From e1076dd50a97da22d70ed19b72b986a1af9fab64 Mon Sep 17 00:00:00 2001 From: Einenlum Date: Fri, 1 Mar 2024 18:51:21 +0100 Subject: [PATCH] Hide preview button when in a preview --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 780c3cf..a5589fc 100644 --- a/main.js +++ b/main.js @@ -68,6 +68,7 @@ window.onload = function() { previewButton.addEventListener('click', (e) => { e.preventDefault(); + previewButton.classList.add('hidden'); preview.classList.remove('hidden'); interval = replayText(preview); });