Merge pull request #281 from shikorism/fix/279-unauthorized-ajax-call

非ログイン状態でいいねしようとした時にログインを促す
This commit is contained in:
shibafu
2019-10-11 00:31:24 +09:00
committed by GitHub

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);