mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
merge Equalizer - release
This commit is contained in:
@@ -539,6 +539,7 @@ $(document).ready(function(){
|
||||
//first time the page loads: attempt to get the connection status and start the wifi scan
|
||||
refreshAP(false);
|
||||
getConfig();
|
||||
getCommands();
|
||||
|
||||
//start timers
|
||||
startCheckStatusInterval();
|
||||
@@ -894,6 +895,19 @@ function checkStatus(){
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function getCommands() {
|
||||
$.getJSON("/commands.json", function(data) {
|
||||
console.log(data);
|
||||
})
|
||||
.fail(function(xhr, ajaxOptions, thrownError) {
|
||||
console.log(xhr.status);
|
||||
console.log(thrownError);
|
||||
if (thrownError != '') showMessage(thrownError, 'MESSAGING_ERROR');
|
||||
blockAjax = false;
|
||||
});
|
||||
}
|
||||
|
||||
function getConfig() {
|
||||
$.getJSON("/config.json", function(data) {
|
||||
Object.keys(data).sort().forEach(function(key, i) {
|
||||
|
||||
Reference in New Issue
Block a user