@one-commerce/sdk-core 2.1.1-KALET-149-autoheight-fix.0 → 2.1.1

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.
@@ -1328,9 +1328,7 @@ var Sdk = /*#__PURE__*/function (_Events) {
1328
1328
  }, {
1329
1329
  key: "sendFrameHeight",
1330
1330
  value: function sendFrameHeight() {
1331
- // html element has scrollHeight same as height set on iframe so we cant use it
1332
- var body = document.body;
1333
- this.channel.postMessage(main.Message.FRAME_HEIGHT_CHANGE, body.scrollHeight);
1331
+ this.channel.postMessage(main.Message.FRAME_HEIGHT_CHANGE, document.body.scrollHeight);
1334
1332
  }
1335
1333
  }, {
1336
1334
  key: "initializeHeightObserver",