File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11import { ThemeType } from "@/context/theme-provider" ;
22import { ConnectionStoreItem } from "@/lib/conn-manager-store" ;
3- import { BrowserWindow } from "electron" ;
3+ import { BrowserWindow , shell } from "electron" ;
44import { ConnectionPool } from "../connection-pool" ;
55import { getWindowConfig , isDev } from "../utils" ;
66import { MainWindow } from "./main-window" ;
@@ -45,6 +45,12 @@ export function createDatabaseWindow(ctx: {
4545 dbWindow . destroy ( ) ;
4646 } ) ;
4747
48+ // Open in the default web browser
49+ dbWindow . webContents . setWindowOpenHandler ( ( { url } ) => {
50+ shell . openExternal ( url ) ;
51+ return { action : "deny" } ; // Prevent opening in Electron
52+ } ) ;
53+
4854 const EMBEDED_STUDIO_ENDPOINT =
4955 process . env . STUDIO_ENDPOINT || STUDIO_ENDPOINT ;
5056
You can’t perform that action at this time.
0 commit comments