style: using fs promises

This commit is contained in:
Chubby Granny Chaser
2025-03-09 19:28:47 +00:00
parent 857063d2c7
commit a32fdf3385
6 changed files with 43 additions and 53 deletions

View File

@@ -312,7 +312,6 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("sendFriendRequest", userId),
/* User */
getAuth: () => ipcRenderer.invoke("getAuth"),
getUser: (userId: string) => ipcRenderer.invoke("getUser", userId),
blockUser: (userId: string) => ipcRenderer.invoke("blockUser", userId),
unblockUser: (userId: string) => ipcRenderer.invoke("unblockUser", userId),
@@ -338,6 +337,7 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("getUnlockedAchievements", objectId, shop),
/* Auth */
getAuth: () => ipcRenderer.invoke("getAuth"),
signOut: () => ipcRenderer.invoke("signOut"),
openAuthWindow: (page: AuthPage) =>
ipcRenderer.invoke("openAuthWindow", page),