@monterosa/sdk-launcher-kit 2.0.0-rc.4 → 2.0.0-rc.5

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/dist/index.cjs CHANGED
@@ -489,24 +489,6 @@ function getBridge(id) {
489
489
  bridges.set(id, bridge);
490
490
  return bridge;
491
491
  }
492
- /**
493
- * Returns true if the page is inside an iframe.
494
- *
495
- * @internal
496
- */
497
- function isInsideIframe() {
498
- if (typeof window === 'undefined') {
499
- return false;
500
- }
501
- try {
502
- return window.self !== window.top;
503
- }
504
- catch (_a) {
505
- // SecurityError is thrown when accessing window.top in a cross-origin iframe.
506
- // If we can't access it, we're definitely in an iframe.
507
- return true;
508
- }
509
- }
510
492
  /**
511
493
  * @internal
512
494
  */
@@ -517,9 +499,6 @@ function getParentBridge() {
517
499
  if (parentBridge !== undefined) {
518
500
  return parentBridge;
519
501
  }
520
- if (!isInsideIframe()) {
521
- return null;
522
- }
523
502
  const url = new URL(window.location.href);
524
503
  const bridgeId = url.searchParams.get(exports.QueryParam.BridgeId);
525
504
  if (bridgeId === null) {
@@ -1076,7 +1055,7 @@ function unstashStyles(element) {
1076
1055
  element.removeAttribute('data-stash');
1077
1056
  }
1078
1057
 
1079
- var version = "2.0.0-rc.4";
1058
+ var version = "2.0.0-rc.5";
1080
1059
 
1081
1060
  /**
1082
1061
  * @license
@@ -1915,7 +1894,6 @@ exports.getExperience = getExperience;
1915
1894
  exports.getParentApplication = getParentApplication;
1916
1895
  exports.getParentBridge = getParentBridge;
1917
1896
  exports.isAutoresizesHeight = isAutoresizesHeight;
1918
- exports.isInsideIframe = isInsideIframe;
1919
1897
  exports.onMessage = onMessage;
1920
1898
  exports.onMoreDataRequested = onMoreDataRequested;
1921
1899
  exports.onReady = onReady;