From 5f777a1b25c3aa45d9f613514c879d4c535190e3 Mon Sep 17 00:00:00 2001 From: friedPotat0 <5374007+friedPotat0@users.noreply.github.com> Date: Sat, 12 Oct 2019 13:30:29 +0200 Subject: [PATCH] remove obsolete lines --- data/web/js/site/debug.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/data/web/js/site/debug.js b/data/web/js/site/debug.js index d7b66a40..f2ef0dcf 100644 --- a/data/web/js/site/debug.js +++ b/data/web/js/site/debug.js @@ -468,7 +468,7 @@ jQuery(function($){ else { item.rcpt = item.rcpt_smtp.join(", "); } - Object.keys(item.symbols).sort(function (a, b) { + item.symbols = Object.keys(item.symbols).sort(function (a, b) { if (item.symbols[a].score === 0) return 1 if (item.symbols[b].score === 0) return -1 if (item.symbols[b].score < 0 && item.symbols[a].score < 0) { @@ -493,17 +493,9 @@ jQuery(function($){ if (sym.options) { str += ' [' + sym.options.join(", ") + "]"; } - item.symbols[key].str = str; - }); + return str + }).join('
\n'); item.subject = escapeHtml(item.subject); - item.symbols = Object.keys(item.symbols). - map(function(key) { - return item.symbols[key]; - }).sort(function(e1, e2) { - return Math.abs(e1.score) < Math.abs(e2.score); - }).map(function(e) { - return e.str; - }).join("
\n"); var scan_time = item.time_real.toFixed(3) + ' / ' + item.time_virtual.toFixed(3); item.scan_time = { "options": {