Skip to content

Commit

Permalink
Update url hash when saving (changing the tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
asl97 committed Oct 21, 2024
1 parent 4b8eb3d commit 09b2e60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function saves(){
)

window.localStorage.setItem('jsLbench', data);
history.replaceState(null, null, document.location.pathname + '#' + data);

return data;
}
Expand Down

0 comments on commit 09b2e60

Please sign in to comment.