mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
parent
3150708d7a
commit
7d2de36501
@ -25,6 +25,7 @@
|
||||
- Unifying Misskey-specific IRIs in JSON-LD `@context`
|
||||
|
||||
### Bugfixes
|
||||
- アップロードエラー時の処理を修正
|
||||
|
||||
## 12.101.1 (2021/12/29)
|
||||
|
||||
|
@ -570,7 +570,7 @@ export function upload(file: File, folder?: any, name?: string): Promise<Misskey
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', apiUrl + '/drive/files/create', true);
|
||||
xhr.onload = (ev) => {
|
||||
if (ev.target == null || ev.target.response == null) {
|
||||
if (xhr.status !== 200 || ev.target == null || ev.target.response == null) {
|
||||
// TODO: 消すのではなくて再送できるようにしたい
|
||||
uploads.value = uploads.value.filter(x => x.id != id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user