mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: handle open new browser window on link
This commit is contained in:
parent
b8dcd66cd2
commit
52f85517bf
1 changed files with 5 additions and 0 deletions
|
@ -141,6 +141,11 @@ export class WindowManager {
|
||||||
WindowManager.mainWindow?.setProgressBar(-1);
|
WindowManager.mainWindow?.setProgressBar(-1);
|
||||||
WindowManager.mainWindow = null;
|
WindowManager.mainWindow = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.mainWindow.webContents.setWindowOpenHandler((handler) => {
|
||||||
|
shell.openExternal(handler.url);
|
||||||
|
return { action: "deny" };
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static openAuthWindow(page: AuthPage, searchParams: URLSearchParams) {
|
public static openAuthWindow(page: AuthPage, searchParams: URLSearchParams) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue