mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
opt: remove js interval when not detect parentIframe
This commit is contained in:
parent
5c158e5c70
commit
fbb1c09f6f
|
@ -17,4 +17,7 @@ var interval = setInterval(function () {
|
|||
console.log("iframe set height to " + height);
|
||||
parentIFrame.size(height);
|
||||
}
|
||||
else {
|
||||
clearInterval(interval);
|
||||
}
|
||||
}, 500);
|
||||
|
|
Loading…
Reference in a new issue