Merge pull request #47 from Shyrokonis/main

Add check to prevent GET request for non-existent image after upload
Этот коммит содержится в:
Mattia Roccoberton
2025-03-09 09:17:33 +01:00
коммит произвёл GitHub
родитель 99908f97f7 d690b9906f
Коммит ba53f9febf

Просмотреть файл

@@ -73,6 +73,9 @@
method: 'POST'
}).then(response => response.json())
.then(result => {
if (!result.url) {
reject('Upload failed')
}
resolve(result.url);
})
.catch(error => {