mirror of
https://github.com/coder/code-server.git
synced 2026-06-21 17:37:11 +02:00
Bit of cleanup, some test fixes, moving some funcs
This commit is contained in:
@@ -221,7 +221,7 @@ export class Upload {
|
||||
|
||||
await rm();
|
||||
|
||||
reader.addEventListener("load", async () => {
|
||||
const load = async (): Promise<void> => {
|
||||
const buffer = new Uint8Array(reader.result as ArrayBuffer);
|
||||
let bufferOffset = 0;
|
||||
|
||||
@@ -259,7 +259,9 @@ export class Upload {
|
||||
}
|
||||
|
||||
seek();
|
||||
});
|
||||
};
|
||||
|
||||
reader.addEventListener("load", load);
|
||||
|
||||
seek();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user