Fix uncaught promise error

This commit is contained in:
Alice Gaudon 2020-05-19 05:18:15 +02:00
parent 517f0ef5a4
commit c503016941
1 changed files with 2 additions and 1 deletions

View File

@ -619,7 +619,8 @@ function setContextMenu(webContents) {
label: 'Open URL in default browser',
click: () => {
if (props.linkURL.startsWith('https://')) {
shell.openExternal(props.linkURL);
shell.openExternal(props.linkURL)
.catch(console.error);
}
},
}));