Skip to content

Commit

Permalink
load the url hash as a save testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
asl97 committed Oct 21, 2024
1 parent c26054b commit 4b8eb3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
loads(location.hash.slice(1) || window.localStorage.getItem('jsLbench'))

0 comments on commit 4b8eb3d

Please sign in to comment.