mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
Merge branch 'feature/seed-completed-downloads' into feat/achievements-points
This commit is contained in:
commit
07d0e86031
@ -5,10 +5,12 @@ const processProfileImage = async (
|
|||||||
_event: Electron.IpcMainInvokeEvent,
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
path: string
|
path: string
|
||||||
) => {
|
) => {
|
||||||
return PythonRPC.rpc.post<{ imagePath: string; mimeType: string }>(
|
return PythonRPC.rpc
|
||||||
"/profile_image_processor/process_image",
|
.post<{
|
||||||
{ path }
|
imagePath: string;
|
||||||
);
|
mimeType: string;
|
||||||
|
}>("/profile-image", { image_path: path })
|
||||||
|
.then((response) => response.data);
|
||||||
};
|
};
|
||||||
|
|
||||||
registerEvent("processProfileImage", processProfileImage);
|
registerEvent("processProfileImage", processProfileImage);
|
||||||
|
Loading…
Reference in New Issue
Block a user