@omniumretail/component-library 1.2.87 → 1.2.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25721,14 +25721,22 @@ const Header = ({
|
|
|
25721
25721
|
if (shouldConfirmNavigation) {
|
|
25722
25722
|
onLeavingPage("/profile");
|
|
25723
25723
|
} else {
|
|
25724
|
-
window.
|
|
25724
|
+
if (window.top && window.top !== window.self) {
|
|
25725
|
+
window.top.location.href = profileUrl;
|
|
25726
|
+
} else {
|
|
25727
|
+
window.location.href = profileUrl;
|
|
25728
|
+
}
|
|
25725
25729
|
}
|
|
25726
25730
|
};
|
|
25727
25731
|
const onHome = () => {
|
|
25728
25732
|
if (shouldConfirmNavigation) {
|
|
25729
25733
|
onLeavingPage("/home");
|
|
25730
25734
|
} else {
|
|
25731
|
-
window.
|
|
25735
|
+
if (window.top && window.top !== window.self) {
|
|
25736
|
+
window.top.location.href = homeUrl;
|
|
25737
|
+
} else {
|
|
25738
|
+
window.location.href = homeUrl;
|
|
25739
|
+
}
|
|
25732
25740
|
}
|
|
25733
25741
|
};
|
|
25734
25742
|
const onSupport = () => {
|