use actual, not visible, frequency
This commit is contained in:
parent
fef6f3bbd1
commit
f292ba55c1
@ -1349,9 +1349,11 @@ function update_bookmarks(bookmarks, source) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadLocalBookmarks() {
|
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){
|
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');
|
update_bookmarks(bookmarks, 'local');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user