Added character likes
This commit is contained in:
@ -2,7 +2,7 @@ import AnimeNotifier from "../AnimeNotifier"
|
||||
|
||||
// like
|
||||
export async function like(arn: AnimeNotifier, element: HTMLElement) {
|
||||
arn.statusMessage.showInfo("Liked!")
|
||||
arn.statusMessage.showInfo("Liked!", 1000)
|
||||
|
||||
let apiEndpoint = arn.findAPIEndpoint(element)
|
||||
await arn.post(apiEndpoint + "/like", null).catch(err => arn.statusMessage.showError(err))
|
||||
@ -11,7 +11,7 @@ export async function like(arn: AnimeNotifier, element: HTMLElement) {
|
||||
|
||||
// unlike
|
||||
export async function unlike(arn: AnimeNotifier, element: HTMLElement) {
|
||||
arn.statusMessage.showInfo("Disliked!")
|
||||
arn.statusMessage.showInfo("Disliked!", 1000)
|
||||
|
||||
let apiEndpoint = arn.findAPIEndpoint(element)
|
||||
await arn.post(apiEndpoint + "/unlike", null).catch(err => arn.statusMessage.showError(err))
|
||||
|
Reference in New Issue
Block a user