Skip to content

Commit

Permalink
fix(main.ts): open wiki url in the desktop browser (azerothcore#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias authored Dec 29, 2022
1 parent 13272be commit fa914a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ try {
win.webContents.on('context-menu', function () {
ctxMenu.popup(win);
});

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

// Quit when all windows are closed.
Expand Down

0 comments on commit fa914a1

Please sign in to comment.