From 939d9e548871fb4d1c47955fd57b919a669e5324 Mon Sep 17 00:00:00 2001 From: yukirij Date: Sun, 25 Aug 2024 12:41:26 -0700 Subject: [PATCH] Reduce delay when loading history. --- www/js/interface.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/www/js/interface.js b/www/js/interface.js index ea8d0d4..d499977 100644 --- a/www/js/interface.js +++ b/www/js/interface.js @@ -820,10 +820,7 @@ const INTERFACE = { INTERFACE_DATA.player = data.player; } - INTERFACE_DATA.history = [ ]; - for(let i = 0; i < data.history.length; ++i) { - INTERFACE.history_push(data.history[i]); - } + INTERFACE_DATA.history = data.history; let turn = INTERFACE_DATA.history.length; if(INTERFACE_DATA.history.length > 0) {