Inside IFRAMES the onload event is reaised before the window has its real size.

This commit is contained in:
mati108@gmail.com committed 2018-11-22 18:47:50 -03:00
1 parent 0355b829aa
commit 516e0a33db
1 file changed
+3 -1
+3 -1
View File
@@ -32,7 +32,9 @@
context: {}
};
loadAdvancedAlgosPlatform();
let delay = 0
if (window.innerHeight === 0) {delay = 3000} // Inside IFRAMES the onload event is reaised before the window has its real size.
setTimeout(loadAdvancedAlgosPlatform, delay)
}
}
function onResize(){