Cleanup and drag & drop fix
This commit is contained in:
@ -9,7 +9,7 @@ export async function join(arn: AnimeNotifier, element: HTMLElement) {
|
||||
let apiEndpoint = arn.findAPIEndpoint(element)
|
||||
|
||||
try {
|
||||
await arn.post(`${apiEndpoint}/join`, null)
|
||||
await arn.post(`${apiEndpoint}/join`)
|
||||
arn.reloadContent()
|
||||
arn.statusMessage.showInfo("Joined group!", 1000)
|
||||
} catch(err) {
|
||||
@ -26,7 +26,7 @@ export async function leave(arn: AnimeNotifier, element: HTMLElement) {
|
||||
let apiEndpoint = arn.findAPIEndpoint(element)
|
||||
|
||||
try {
|
||||
await arn.post(`${apiEndpoint}/leave`, null)
|
||||
await arn.post(`${apiEndpoint}/leave`)
|
||||
arn.reloadContent()
|
||||
arn.statusMessage.showInfo("Left group!", 1000)
|
||||
} catch(err) {
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user