add bookmark button

This commit is contained in:
Jakob Ketterl
2019-09-28 16:50:21 +02:00
parent c3bcb17312
commit 4407146962
4 changed files with 36 additions and 2 deletions

View File

@ -1365,6 +1365,13 @@ function init_bookmarks() {
demodulator_analog_replace(b.modulation);
$bookmark.addClass('selected');
});
$bookmarkButton = $('#openwebrx-panel-receiver .openwebrx-bookmark-button');
if (typeof(Storage) !== 'undefined') {
$bookmarkButton.show();
} else {
$bookmarkButton.hide();
}
}
var dial_frequencies = [];