From d4cf983d5d66825232679b168f6fca1513c667aa Mon Sep 17 00:00:00 2001 From: cv <34649812+cpvalente@users.noreply.github.com> Date: Mon, 25 Oct 2021 10:42:03 +0200 Subject: [PATCH] fix: open links when using browser --- client/src/features/info/InfoNif.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/features/info/InfoNif.jsx b/client/src/features/info/InfoNif.jsx index 9bcf344dd..4935733ea 100644 --- a/client/src/features/info/InfoNif.jsx +++ b/client/src/features/info/InfoNif.jsx @@ -15,8 +15,10 @@ export default function InfoNif() { const baseURL = `http://__IP__:${4001}`; const handleLink = (url) => { - if (window.process.type === 'renderer') { + if (window.process?.type === 'renderer') { window.ipcRenderer.send('send-to-link', url); + } else { + window.open(url); } };