Added deletion to Kitsu imports

This commit is contained in:
2018-04-17 12:27:54 +02:00
parent 9eae7ebce5
commit 8cb44131cf
7 changed files with 73 additions and 6 deletions

View File

@ -804,12 +804,12 @@ export default class AnimeNotifier {
return Diff.innerHTML(element, html)
}
post(url: string, body: any) {
post(url: string, body?: any) {
if(this.isLoading) {
return Promise.resolve(null)
}
if(typeof body !== "string") {
if(body !== undefined && typeof body !== "string") {
body = JSON.stringify(body)
}