mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-06 13:31:28 +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,
|
icon: Logo,
|
||||||
});
|
});
|
||||||
notification.onclick = () => {
|
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