[MM-38310][MM-38313][MM-38315] Fixed some issues caused by having multiple tabs (#1722)
* [MM-38313][MM-38315] Fixed some issues caused by having multiple tabs * [MM-38310] Make sure notification navigates to correct tab
This commit is contained in:
@@ -420,8 +420,14 @@ export function updateLoadingScreenDarkMode(darkMode: boolean) {
|
||||
}
|
||||
}
|
||||
|
||||
export function getViewNameByWebContentsId(webContentsId: number) {
|
||||
const view = status.viewManager?.findViewByWebContent(webContentsId);
|
||||
return view?.name;
|
||||
}
|
||||
|
||||
export function getServerNameByWebContentsId(webContentsId: number) {
|
||||
return status.viewManager?.findByWebContent(webContentsId);
|
||||
const view = status.viewManager?.findViewByWebContent(webContentsId);
|
||||
return view?.tab.server.name;
|
||||
}
|
||||
|
||||
export function close() {
|
||||
|
Reference in New Issue
Block a user