Fix uncaught promise error
This commit is contained in:
parent
517f0ef5a4
commit
c503016941
@ -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);
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user