Fix uncaught promise error

This commit is contained in:
Alice Gaudon 2020-05-19 05:18:15 +02:00
parent 517f0ef5a4
commit c503016941

View File

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