mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-28 10:29:11 +00:00
fix: open links when using browser
This commit is contained in:
@@ -15,8 +15,10 @@ export default function InfoNif() {
|
|||||||
const baseURL = `http://__IP__:${4001}`;
|
const baseURL = `http://__IP__:${4001}`;
|
||||||
|
|
||||||
const handleLink = (url) => {
|
const handleLink = (url) => {
|
||||||
if (window.process.type === 'renderer') {
|
if (window.process?.type === 'renderer') {
|
||||||
window.ipcRenderer.send('send-to-link', url);
|
window.ipcRenderer.send('send-to-link', url);
|
||||||
|
} else {
|
||||||
|
window.open(url);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user