From 1ccd02575638bc7fd6eef8e295fcc0d78b0765f2 Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 9 Dec 2024 21:46:39 +1100 Subject: [PATCH] Fix logic to select lastest frame from message base --- load/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/load/page.js b/load/page.js index 7b7c307..896bb3f 100644 --- a/load/page.js +++ b/load/page.js @@ -1047,9 +1047,9 @@ function Page(debug) { var msg = mb.frames .sort(function(a,b) { if (a.when_imported_time === b.when_imported_time) - return a.number < b.number + return a.number > b.number else - return (a.when_imported_time < b.when_imported_time); }) + return (a.when_imported_time > b.when_imported_time); }) .filter(function(item) { return (item.from === 'SYSTEM') && (item.to === page); }).pop(); if (msg === undefined) {