opt: remove js interval when not detect parentIframe

This commit is contained in:
Xiao YiFang 2023-04-15 15:17:14 +08:00
parent 5c158e5c70
commit fbb1c09f6f

View file

@ -17,4 +17,7 @@ var interval = setInterval(function () {
console.log("iframe set height to " + height); console.log("iframe set height to " + height);
parentIFrame.size(height); parentIFrame.size(height);
} }
else {
clearInterval(interval);
}
}, 500); }, 500);