aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2023-03-07 13:38:18 +0100
committerSaúl Ibarra Corretgé <s@saghul.net>2023-03-07 15:14:46 +0100
commita261fd46bc6c7d4804aa83e3f327fa59cc52bcb3 (patch)
tree1f132474d681adfef062853a070323811f617112 /main.js
parentff731914446169ff860f9f2d8cc9a87c4dfdb675 (diff)
feat(reload) refactor opening external links
Use IPC to send a message to the main process instead of opening them from the renderer process.
Diffstat (limited to 'main.js')
-rw-r--r--main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.js b/main.js
index 171fc08..9ddca84 100644
--- a/main.js
+++ b/main.js
@@ -416,3 +416,10 @@ ipcMain.on('renderer-ready', () => {
.send('protocol-data-msg', protocolDataForFrontApp);
}
});
+
+/**
+ * Handle opening external links in the main process.
+ */
+ipcMain.on('jitsi-open-url', (event, someUrl) => {
+ openExternalLink(someUrl);
+});