Added console error output

This commit is contained in:
Aune 2022-01-14 16:43:30 +01:00 committed by GitHub
parent 01d5292a1e
commit ba65ae2832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,7 @@ $(document).on('submit', '#plex_login_form', function(){
document.getElementById('snowflakes').style.display = 'none';
} catch(error) {
document.getElementById('results_error').innerHTML = "API response can't be parsed.";
console.log('API response can\'t be parsed. Error: ' + this.responseText)
}
//console.log(result);
@ -305,4 +306,4 @@ function delete_link_user() {
xhttp.open("post", "api/delete_link_user.php");
xhttp.send(cookie_data);
return;
}
}