From c13d55c4a01aec8aee8db0dd1b31309ceb7bc11c Mon Sep 17 00:00:00 2001 From: Yi-Ting Tu Date: Sat, 16 Sep 2023 23:12:15 -0400 Subject: [PATCH] Fix bugs for new UI --- simulator/js/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simulator/js/index.js b/simulator/js/index.js index 23b539fe..46c25c14 100644 --- a/simulator/js/index.js +++ b/simulator/js/index.js @@ -725,6 +725,8 @@ function JSONInput() { document.getElementById('color_mode').checked = colorMode; document.getElementById('color_mode_mobile').checked = colorMode; modebtn_clicked(jsonData.mode); + document.getElementById('mode_' + jsonData.mode).checked = true; + document.getElementById('mode_' + jsonData.mode + '_mobile').checked = true; selectObj(selectedObj); }