Fixed shortcuts working before settings are loaded.

This commit is contained in:
Marat Fayzullin 2024-09-11 19:24:21 -04:00
parent 9eec273de0
commit 231416f832
1 changed files with 3 additions and 3 deletions

View File

@ -1192,6 +1192,9 @@ function onAudioStart(apiType){
// Load user interface settings from local storage
UI.loadSettings();
Chat.loadSettings();
// Initialize keyboard shortcuts
Shortcuts.init(document.body);
}
var reconnect_timeout = false;
@ -1403,9 +1406,6 @@ function openwebrx_init() {
// Create and run clock
clock = new Clock($('#openwebrx-clock-utc'));
// Initialize keyboard shortcuts
Shortcuts.init(document.body);
}
function initSliders() {