Cleanup and drag & drop fix

This commit is contained in:
2019-04-21 17:39:24 +09:00
parent bffa28d338
commit d07232bff8
3 changed files with 18 additions and 14 deletions

View File

@ -6,7 +6,7 @@ export async function like(arn: AnimeNotifier, element: HTMLElement) {
let apiEndpoint = arn.findAPIEndpoint(element)
try {
await arn.post(apiEndpoint + "/like", null)
await arn.post(apiEndpoint + "/like")
arn.reloadContent()
} catch(err) {
arn.statusMessage.showError(err)
@ -19,7 +19,7 @@ export async function unlike(arn: AnimeNotifier, element: HTMLElement) {
let apiEndpoint = arn.findAPIEndpoint(element)
try {
await arn.post(apiEndpoint + "/unlike", null)
await arn.post(apiEndpoint + "/unlike")
arn.reloadContent()
} catch(err) {
arn.statusMessage.showError(err)