Skip to content

Commit b2d6f78

Browse files
committed
Fix vite build error
1 parent 82472ff commit b2d6f78

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/update.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,15 @@ export async function checkForUpdates() {
1313
)
1414
return;
1515

16-
let downloaded = 0;
17-
let contentLength: number | undefined = 0;
18-
1916
let promise = update.downloadAndInstall((event) => {
2017
switch (event.event) {
2118
case "Started":
22-
contentLength = event.data.contentLength;
23-
console.log(`started downloading ${event.data.contentLength} bytes`);
19+
console.log("Started download");
2420
break;
2521
case "Progress":
26-
downloaded += event.data.chunkLength;
2722
break;
2823
case "Finished":
29-
console.log("download finished");
24+
console.log("Download finished");
3025
break;
3126
}
3227
});

0 commit comments

Comments
 (0)