refactor: 💡 Prevent opening unknown
Prevent opening unknown links
This commit is contained in:
1 parent
772c8b38c0
commit
264f81a6f3
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user