mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
better API error handling
This commit is contained in:
@ -61,7 +61,7 @@
|
||||
document.cookie = `token=${data.token};`;
|
||||
window.location.href = 'userprofile.html?id=me';
|
||||
} else {
|
||||
alert(data.error);
|
||||
callbackErrors(data.errors, alert);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user