mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 03:59:12 +00:00
Clicking on browser notification for chrome will now open new window (#7068)
This commit is contained in:
parent
6547beeffc
commit
d438fbead8
@ -154,7 +154,14 @@ const NavBar = ({
|
||||
icon: Logo,
|
||||
});
|
||||
notification.onclick = () => {
|
||||
history.push(path);
|
||||
const isChrome = window.navigator.userAgent.indexOf('Chrome');
|
||||
// Applying logic to open a new window onclick of browser notification from chrome
|
||||
// As it does not open the concerned tab by default.
|
||||
if (isChrome > -1) {
|
||||
window.open(path);
|
||||
} else {
|
||||
history.push(path);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user