Some updates

This commit is contained in:
WolverinDEV 2019-09-01 21:44:28 +02:00
parent a5839b8c71
commit bdb01d1603
2 changed files with 5 additions and 6 deletions

2
github

@ -1 +1 @@
Subproject commit 06391c6cdd772c2f83c1387960f7224f7cd9f514 Subproject commit 2dd1f60e8d034a68bbca9afe294070c8a83caa9e

View File

@ -88,7 +88,7 @@ namespace _transfer {
} }
} }
class NativeFileUpload implements RequestFileUpload { class NativeFileUpload implements transfer.UploadTransfer {
readonly transfer_key: transfer.UploadKey; readonly transfer_key: transfer.UploadKey;
private _handle: native.ft.NativeFileTransfer; private _handle: native.ft.NativeFileTransfer;
@ -101,7 +101,6 @@ namespace _transfer {
this.transfer_key = key; this.transfer_key = key;
} }
async put_data(data: BlobPart | File) : Promise<void> { async put_data(data: BlobPart | File) : Promise<void> {
if(this._result) { if(this._result) {
await this._result; await this._result;
@ -167,8 +166,8 @@ namespace _transfer {
})); }));
} }
try_put(data: FormData, url: string): Promise<void> { get_key(): transfer.UploadKey {
throw "what the hell?"; return this.transfer_key;
} }
} }
@ -178,7 +177,7 @@ namespace _transfer {
} }
export function spawn_upload_transfer(key: transfer.UploadKey) : transfer.NativeFileUpload { export function spawn_upload_transfer(key: transfer.UploadKey) : transfer.UploadTransfer {
return new NativeFileUpload(key); return new NativeFileUpload(key);
} }
} }