fix squeezelite startup toggle

This commit is contained in:
Sebastien
2019-10-16 11:20:33 -04:00
parent 51a3fbcef0
commit 0a4a6b16c3

View File

@@ -194,7 +194,9 @@ $(document).ready(function(){
console.log(thrownError);
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('now triggering reboot');
$.ajax({
@@ -209,6 +211,12 @@ $(document).ready(function(){
console.log(thrownError);
if (thrownError != '') showMessage(thrownError, 'ERROR');
}
complete: function(response) {
console.log('reboot call completed');
}
});
}
});
});