From 4b8eb3d5613dd5451571c2a179c81f1e4e923c66 Mon Sep 17 00:00:00 2001 From: asl97 Date: Mon, 21 Oct 2024 08:29:54 +0800 Subject: [PATCH] load the url hash as a save testcase --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 355d308..5cdf4b3 100644 --- a/js/main.js +++ b/js/main.js @@ -198,4 +198,4 @@ function run_tests(){ document.getElementById('add_test').onclick = ()=>new_test(); document.getElementById('run_tests').onclick = ()=>run_tests(); -loads(window.localStorage.getItem('jsLbench')) \ No newline at end of file +loads(location.hash.slice(1) || window.localStorage.getItem('jsLbench')) \ No newline at end of file