From 47eaeb19844f078bfcdb0a898a62693c59064c46 Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Mon, 14 Apr 2025 11:40:57 +0100 Subject: [PATCH] Check game button exists --- src/main/resources/static/js/downloader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/js/downloader.js b/src/main/resources/static/js/downloader.js index 3b325b597..7bdcd83d5 100644 --- a/src/main/resources/static/js/downloader.js +++ b/src/main/resources/static/js/downloader.js @@ -132,7 +132,9 @@ } } catch (error) { clearTimeout(timeoutId); - showGameBtn.style.display = 'none'; + if(showGameBtn){ + showGameBtn.style.display = 'none'; + } submitButton.textContent = originalButtonText; submitButton.disabled = false; handleDownloadError(error);