Skip to content

Commit

Permalink
πŸ› Fix sorting order storage in JQuery unload event
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored and nedbat committed Dec 6, 2020
1 parent c3263d5 commit b12a97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coverage/htmlfiles/coverage_html.js
Expand Up @@ -224,7 +224,7 @@ coverage.index_ready = function ($) {
coverage.wire_up_filter();

// Watch for page unload events so we can save the final sort settings:
$(window).unload(function () {
$(window).on("unload", function () {
try {
localStorage.setItem(storage_name, sort_list.toString())
} catch(err) {}
Expand Down

0 comments on commit b12a97e

Please sign in to comment.