We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088155d commit 84e6908Copy full SHA for 84e6908
docs/StardustDocs/cfg/resize-iframes.js
@@ -48,20 +48,19 @@
48
function doObserveIFrame(el) {
49
resize_iframe_out(el);
50
const mutationObserver = new MutationObserver((mutations) => {
51
- let resized = false;
+ let resize = false;
52
for (let mutation of mutations) {
53
// skip attribute changes except open to avoid loop
54
// (callback sees change in iframe, triggers resize, sees change...)
55
if (mutation.type === 'attributes') {
56
if (mutation.attributeName === 'open') {
57
- resize_iframe_out(el);
58
- resized = true;
+ resize = true;
59
}
60
} else {
61
62
63
64
- if (resized) {
+ if (resize) {
65
66
67
});
0 commit comments