Skip to content

Commit b12a97e

Browse files
tiangolonedbat
authored andcommitted
🐛 Fix sorting order storage in JQuery unload event
1 parent c3263d5 commit b12a97e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/htmlfiles/coverage_html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ coverage.index_ready = function ($) {
224224
coverage.wire_up_filter();
225225

226226
// Watch for page unload events so we can save the final sort settings:
227-
$(window).unload(function () {
227+
$(window).on("unload", function () {
228228
try {
229229
localStorage.setItem(storage_name, sort_list.toString())
230230
} catch(err) {}

0 commit comments

Comments
 (0)