From 49339295227062e86ec16da130da5a142344bd1f Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 9 Oct 2023 12:55:48 +0700 Subject: [PATCH] load the latest run --- web/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/script.js b/web/script.js index bd514943..32641798 100644 --- a/web/script.js +++ b/web/script.js @@ -286,8 +286,6 @@ xhr.send(); } - load("latest"); - // enable loading of old runs var xhr = new XMLHttpRequest(); xhr.responseType = 'json'; @@ -299,6 +297,8 @@ return; } var s = document.createElement("select"); + // load the latest run + load(xhr.response[xhr.response.length-1]); xhr.response.reverse().forEach(function(el) { var opt = document.createElement("option"); opt.innerHTML = el.replace("logs_", "");