Skip to content

Commit 84e6908

Browse files
committed
removed extra resize_iframe_out() call
1 parent 088155d commit 84e6908

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/StardustDocs/cfg/resize-iframes.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,19 @@
4848
function doObserveIFrame(el) {
4949
resize_iframe_out(el);
5050
const mutationObserver = new MutationObserver((mutations) => {
51-
let resized = false;
51+
let resize = false;
5252
for (let mutation of mutations) {
5353
// skip attribute changes except open to avoid loop
5454
// (callback sees change in iframe, triggers resize, sees change...)
5555
if (mutation.type === 'attributes') {
5656
if (mutation.attributeName === 'open') {
57-
resize_iframe_out(el);
58-
resized = true;
57+
resize = true;
5958
}
6059
} else {
61-
resized = true;
60+
resize = true;
6261
}
6362
}
64-
if (resized) {
63+
if (resize) {
6564
resize_iframe_out(el);
6665
}
6766
});

0 commit comments

Comments
 (0)