test client: log when an update is complete

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-12-17 12:50:22 -05:00
parent fa20d106cf
commit cdbaaedc8a
1 changed files with 4 additions and 0 deletions

View File

@ -738,6 +738,10 @@ function handle_power_changed(power_status) {
json_rpc.register_method("notify_power_changed", handle_power_changed);
function handle_update_response(response) {
if (response.complete === true) {
console.log("Update complete");
console.log(response);
}
update_term(response.message)
}
json_rpc.register_method("notify_update_response", handle_update_response);