From c503016941d23bf86773841b8e93c245af73d758 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 19 May 2020 05:18:15 +0200 Subject: [PATCH] Fix uncaught promise error --- resources/js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/js/index.js b/resources/js/index.js index 6ecf956..62503ad 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -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); } }, }));