mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 14:07:11 +03:00
fix squeezelite startup toggle
This commit is contained in:
@@ -194,7 +194,9 @@ $(document).ready(function(){
|
|||||||
console.log(thrownError);
|
console.log(thrownError);
|
||||||
if (thrownError != '') showMessage(thrownError, 'ERROR');
|
if (thrownError != '') showMessage(thrownError, 'ERROR');
|
||||||
}
|
}
|
||||||
});
|
complete: function(response) {
|
||||||
|
var returnedResponse = JSON.parse(response.responseText);
|
||||||
|
console.log(response.responseText);
|
||||||
console.log('sent config JSON with headers:', autoexec);
|
console.log('sent config JSON with headers:', autoexec);
|
||||||
console.log('now triggering reboot');
|
console.log('now triggering reboot');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -209,6 +211,12 @@ $(document).ready(function(){
|
|||||||
console.log(thrownError);
|
console.log(thrownError);
|
||||||
if (thrownError != '') showMessage(thrownError, 'ERROR');
|
if (thrownError != '') showMessage(thrownError, 'ERROR');
|
||||||
}
|
}
|
||||||
|
complete: function(response) {
|
||||||
|
console.log('reboot call completed');
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user