From 6158a3778c14416ba86720452a1395bbce01df82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 30 Nov 2020 16:50:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20sorting=20order=20storage?= =?UTF-8?q?=20in=20JQuery=20unload=20event?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coverage/htmlfiles/coverage_html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index 3bf04bf92..6bc9fdf59 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -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) {}