Skip to content

Commit d6df4d1

Browse files
authored
fix: unwanted section of code causing cross-origin error (#36643) (#36652)
#36477 (comment) (cherry picked from commit 6508010)
1 parent 45ed39d commit d6df4d1

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

common/templates/xblock_v2/xblock_iframe.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,6 @@
455455
// it will report the height of its contents to the parent window when the
456456
// document loads, window resizes, or DOM mutates.
457457
if (window !== window.parent) {
458-
var lastHeight = window.parent[0].offsetHeight;
459-
var lastWidth = window.parent[0].offsetWidth;
460-
461458
function dispatchResizeMessage(event) {
462459
// Note: event is actually an Array of MutationRecord objects when fired from the MutationObserver
463460
var newHeight = rootNode.scrollHeight;
@@ -472,10 +469,6 @@
472469
}
473470
}, document.referrer
474471
);
475-
476-
lastHeight = newHeight;
477-
lastWidth = newWidth;
478-
479472
// Within the authoring microfrontend the iframe resizes to match the
480473
// height of this document and it should never scroll. It does scroll
481474
// ocassionally when javascript is used to focus elements on the page

0 commit comments

Comments
 (0)