mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
feat: handle open new browser window on link
This commit is contained in:
parent
0adcc734ac
commit
74d4975d97
@ -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() {
|
||||
|
@ -30,7 +30,7 @@ export function SidebarProfile() {
|
||||
return;
|
||||
}
|
||||
|
||||
navigate(`/profile/${userDetails!.id}`);
|
||||
navigate(`/profile/${userDetails.id}`);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user