refactor: 💡 Prevent opening unknown

Prevent opening unknown links
This commit is contained in:
Carlos Alcaide committed 2021-07-28 10:16:37 -07:00
1 parent 772c8b38c0
commit 264f81a6f3
1 file changed
+1 -1
+1 -1
View File
@@ -171,8 +171,8 @@ app.on('ready', async () => {
// We just allow boundaryproject.io domain to open on external window (for now).
mainWindow.webContents.on('new-window', (event, url) => {
/* eng-disable LIMIT_NAVIGATION_JS_CHECK */
event.preventDefault();
if (url.startsWith('https://boundaryproject.io/')) {
event.preventDefault();
shell.openExternal(url);
}
});