From 75be6e5b473d295cf7788d04a45c240a102bfee8 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Mon, 7 Oct 2024 21:02:15 +0100 Subject: [PATCH] feat: adding hltb key extraction --- src/main/events/profile/update-profile.ts | 4 +-- src/main/services/window-manager.ts | 40 +++++++++++------------ 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/src/main/events/profile/update-profile.ts b/src/main/events/profile/update-profile.ts index b1244684..eb80bc47 100644 --- a/src/main/events/profile/update-profile.ts +++ b/src/main/events/profile/update-profile.ts @@ -48,9 +48,7 @@ const updateProfile = async ( const profileImageUrl = await getNewProfileImageUrl( updateProfile.profileImageUrl - ).catch((err) => { - console.log(err); - }); + ).catch(() => undefined); return patchUserProfile({ ...updateProfile, profileImageUrl }); }; diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index 164ccf9c..eaa05f7a 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -148,29 +148,29 @@ export class WindowManager { } public static createNotificationWindow() { - // this.notificationWindow = new BrowserWindow({ - // transparent: true, - // maximizable: false, - // autoHideMenuBar: true, - // minimizable: false, - // focusable: false, - // skipTaskbar: true, - // frame: false, - // width: 350, - // height: 104, - // x: 0, - // y: 0, - // webPreferences: { - // preload: path.join(__dirname, "../preload/index.mjs"), - // sandbox: false, - // }, - // }); - // this.notificationWindow.setIgnoreMouseEvents(true); + this.notificationWindow = new BrowserWindow({ + transparent: true, + maximizable: false, + autoHideMenuBar: true, + minimizable: false, + focusable: false, + skipTaskbar: true, + frame: false, + width: 350, + height: 104, + x: 0, + y: 0, + webPreferences: { + preload: path.join(__dirname, "../preload/index.mjs"), + sandbox: false, + }, + }); + this.notificationWindow.setIgnoreMouseEvents(true); // this.notificationWindow.setVisibleOnAllWorkspaces(true, { // visibleOnFullScreen: true, // }); - // this.notificationWindow.setAlwaysOnTop(true, "screen-saver", 1); - // this.loadNotificationWindowURL(); + this.notificationWindow.setAlwaysOnTop(true, "screen-saver", 1); + this.loadNotificationWindowURL(); } public static openAuthWindow() {