From f292ba55c12ff8f497e90a97e5a098b1357a61fb Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 28 Sep 2019 20:52:37 +0200 Subject: [PATCH] use actual, not visible, frequency --- htdocs/openwebrx.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 6b2d648..80e218e 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1349,9 +1349,11 @@ function update_bookmarks(bookmarks, source) { } function loadLocalBookmarks() { - var range = get_visible_freq_range(); + var bwh = bandwidth / 2; + var start = center_freq - bwh; + var end = center_freq + bwh; var bookmarks = getLocalBookmarks().filter(function(b){ - return b.frequency >= range.start && b.frequency <= range.end; + return b.frequency >= start && b.frequency <= end; }); update_bookmarks(bookmarks, 'local'); }