mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
docs: moving readme
This commit is contained in:
commit
55a92fd68a
64 changed files with 771 additions and 549 deletions
|
@ -73,26 +73,31 @@ const uploadSaveGame = async (
|
|||
throw err;
|
||||
}
|
||||
|
||||
axios.put(uploadUrl, fileBuffer, {
|
||||
await axios.put(uploadUrl, fileBuffer, {
|
||||
headers: {
|
||||
"Content-Type": "application/zip",
|
||||
},
|
||||
onUploadProgress: (progressEvent) => {
|
||||
if (progressEvent.progress === 1) {
|
||||
fs.rm(zipLocation, (err) => {
|
||||
if (err) {
|
||||
logger.error("Failed to remove zip file", err);
|
||||
throw err;
|
||||
}
|
||||
|
||||
WindowManager.mainWindow?.webContents.send(
|
||||
`on-upload-complete-${objectId}-${shop}`,
|
||||
true
|
||||
);
|
||||
});
|
||||
}
|
||||
console.log(progressEvent);
|
||||
},
|
||||
});
|
||||
|
||||
WindowManager.mainWindow?.webContents.send(
|
||||
`on-upload-complete-${objectId}-${shop}`,
|
||||
true
|
||||
);
|
||||
|
||||
// fs.rm(zipLocation, (err) => {
|
||||
// if (err) {
|
||||
// logger.error("Failed to remove zip file", err);
|
||||
// throw err;
|
||||
// }
|
||||
|
||||
// WindowManager.mainWindow?.webContents.send(
|
||||
// `on-upload-complete-${objectId}-${shop}`,
|
||||
// true
|
||||
// );
|
||||
// });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue