[MM-51406] Check for other server URLs when trying to navigate (#2616)
This commit is contained in:
@@ -241,6 +241,12 @@ export class WebContentsEventManager {
|
||||
return {action: 'deny'};
|
||||
}
|
||||
|
||||
const otherServerURL = WindowManager.viewManager?.getViewByURL(parsedURL);
|
||||
if (otherServerURL && urlUtils.isTeamUrl(otherServerURL.server.url, parsedURL, true)) {
|
||||
WindowManager.showMainWindow(parsedURL);
|
||||
return {action: 'deny'};
|
||||
}
|
||||
|
||||
// If all else fails, just open externally
|
||||
shell.openExternal(details.url);
|
||||
return {action: 'deny'};
|
||||
|
Reference in New Issue
Block a user