From 97a05984ab8518581097e532f2d3189e9ea1370a Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Mon, 20 Jul 2020 17:45:22 +0100 Subject: [PATCH] auto enable/disable proceed button --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index efca6cd..99afb98 100644 --- a/script.js +++ b/script.js @@ -72,12 +72,14 @@ async function run() { function new_game() { textareaGameDataInput.value = load_default_game_data(); + checkGameData(); // we don't need to look at the default game data, so skip ahead to the image page buttonGameDataProceed.click(); } function clear_game() { textareaGameDataInput.value = ""; + checkGameData(); } buttonNewGame.addEventListener("click", new_game);