fix: open links when using browser

This commit is contained in:
cv
2021-10-25 10:42:03 +02:00
parent 0977ee6683
commit d4cf983d5d
+3 -1
View File
@@ -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);
}
};