l-min-components 1.0.1078 → 1.0.1079

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.1078",
3
+ "version": "1.0.1079",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -269,35 +269,10 @@ const SideMenu = ({
269
269
  return (
270
270
  <NavigationItemContainer
271
271
  onClick={() => {
272
- if (
273
- window.location.hostname.includes("staging") &&
274
- (window.location.pathname.includes("developer") ||
275
- window.location.pathname.includes("settings"))
276
- ) {
277
- newTab
278
- ? window.open(path, "_blank")
279
- : (window.location.href = `${path}`);
280
- } else if (window.location.hostname.includes("localhost")) {
281
- newTab
282
- ? window.open(path, "_blank")
283
- : (window.location.href = `http://localhost:${window.location.port}${path}`);
284
- } else if (
285
- window.location.hostname.includes("developer") &&
286
- !window.location.hostname.includes("staging")
287
- ) {
288
- newTab
289
- ? window.open(path, "_blank")
290
- : (window.location.href = `${path}`);
291
- }
292
-
293
- if (!newTab) {
294
- if (window.location.hostname.includes("559staging")) {
295
- window.location.href = `${path}`;
296
- } else if (window.location.hostname.includes("localhost")) {
297
- window.location.href = `http://localhost:${window.location.port}${path}`;
298
- } else {
299
- window.location.href = `${path}`;
300
- }
272
+ if (newTab) {
273
+ window.open(path, "_blank");
274
+ } else {
275
+ window.location.href = `${path}`;
301
276
  }
302
277
  }}
303
278
  key={index}