Skip to content

Commit

Permalink
open using external browser
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-Arc committed Dec 12, 2023
1 parent fdee764 commit d763f3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ function createWindow() {
});

win.setMenu(null);

win.webContents.setWindowOpenHandler(({ url }) => {
shell.openExternal(url);
return { action: 'deny' };
});
}

app.disableHardwareAcceleration();
Expand Down

0 comments on commit d763f3f

Please sign in to comment.