Minor changes

This commit is contained in:
2018-04-17 14:41:31 +02:00
parent 68ac241106
commit 0856fc209a
2 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import AnimeNotifier from "../AnimeNotifier"
import StatusMessage from "../StatusMessage"
import { bytesHumanReadable, fetchWithProgress } from "../Utils"
import { bytesHumanReadable, uploadWithProgress } from "../Utils"
// Select file
export function selectFile(arn: AnimeNotifier, button: HTMLButtonElement) {
@ -65,7 +65,7 @@ function uploadFile(file: File, fileType: string, endpoint: string, arn: AnimeNo
arn.statusMessage.showInfo(`Preparing to upload ${fileType} (${bytesHumanReadable(fileSize)})`, -1)
try {
let responseText = await fetchWithProgress(endpoint, {
let responseText = await uploadWithProgress(endpoint, {
method: "POST",
credentials: "include",
headers: {