@seliseblocks/genesis-os 4.5.2 → 4.5.3

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.
@@ -7649,10 +7649,19 @@ function getNotificationLink(denormalizedPayload) {
7649
7649
  var MERGED_INTO_OS = {
7650
7650
  "blocks-logic": "BLOCKS_LOGIC_BASE_URL"
7651
7651
  };
7652
+ var isServedHere = (url) => {
7653
+ if (!url) return true;
7654
+ if (typeof window === "undefined") return false;
7655
+ try {
7656
+ return new URL(url, window.location.origin).origin === window.location.origin;
7657
+ } catch {
7658
+ return false;
7659
+ }
7660
+ };
7652
7661
  var opensIn = (linkApp, currentApp) => {
7653
7662
  if (linkApp === currentApp) return true;
7654
7663
  const areaKey = MERGED_INTO_OS[linkApp];
7655
- return currentApp === "blocks-os" && !!areaKey && !chunkDVSDWHSQ_cjs.getRuntimeEnv(areaKey);
7664
+ return currentApp === "blocks-os" && !!areaKey && isServedHere(chunkDVSDWHSQ_cjs.getRuntimeEnv(areaKey));
7656
7665
  };
7657
7666
  function getNotificationHref(denormalizedPayload, currentApp, projectItemId) {
7658
7667
  const link = getNotificationLink(denormalizedPayload);
@@ -14409,5 +14418,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
14409
14418
  exports.useRightSidePanel = useRightSidePanel;
14410
14419
  exports.useSortQueryParams = useSortQueryParams;
14411
14420
  exports.useWizardStepper = useWizardStepper;
14412
- //# sourceMappingURL=chunk-DO4LFM52.cjs.map
14413
- //# sourceMappingURL=chunk-DO4LFM52.cjs.map
14421
+ //# sourceMappingURL=chunk-ECRBLTMO.cjs.map
14422
+ //# sourceMappingURL=chunk-ECRBLTMO.cjs.map