401 Unauthorizedはよくないね

This commit is contained in:
shibafu
2019-09-12 00:00:34 +09:00
parent 92847fefe0
commit 5642e73391
+3
View File
@@ -85,6 +85,9 @@ $(() => {
if (xhr.status === 409) {
callback(JSON.parse(xhr.responseText));
return;
} else if (xhr.status === 401) {
alert('いいねするためにはログインしてください。');
return;
}
console.error(xhr);