diff --git a/app/main/src/main.ts b/app/main/src/main.ts index 266f3012..99d7b450 100644 --- a/app/main/src/main.ts +++ b/app/main/src/main.ts @@ -89,6 +89,11 @@ function createMainWindow() { // Open the DevTools. if (isDev) win.webContents.openDevTools({ mode: "detach" }); + win.webContents.setWindowOpenHandler((details) => { + shell.openExternal(details.url); + return { action: "deny" }; + }); + win.loadURL( !onProduction ? "http://localhost:3000" diff --git a/app/renderer/src/routes/Tasks/TaskDetails/MDPreviewer.tsx b/app/renderer/src/routes/Tasks/TaskDetails/MDPreviewer.tsx index 48203300..663dc870 100644 --- a/app/renderer/src/routes/Tasks/TaskDetails/MDPreviewer.tsx +++ b/app/renderer/src/routes/Tasks/TaskDetails/MDPreviewer.tsx @@ -18,6 +18,7 @@ const MDPreviewer: React.FC = ({ description, onClick }) => { >