feat: handle open new browser window on link

This commit is contained in:
Zamitto 2025-01-04 21:17:58 -03:00
parent 0adcc734ac
commit 74d4975d97
2 changed files with 6 additions and 1 deletions

View File

@ -140,6 +140,11 @@ export class WindowManager {
WindowManager.mainWindow?.setProgressBar(-1);
WindowManager.mainWindow = null;
});
this.mainWindow.webContents.setWindowOpenHandler((handler) => {
shell.openExternal(handler.url);
return { action: "deny" };
});
}
public static openAuthWindow() {

View File

@ -30,7 +30,7 @@ export function SidebarProfile() {
return;
}
navigate(`/profile/${userDetails!.id}`);
navigate(`/profile/${userDetails.id}`);
};
useEffect(() => {