Refactor frontend to typescript (#281)
This commit is contained in:
committed by
Aleksei Gurianov
parent
83de28c2da
commit
5809419bce
+1
-1
@@ -88,7 +88,7 @@
|
||||
/* REMOVE-END */
|
||||
var lastHeight = 0;
|
||||
setInterval(function() {
|
||||
if (document.body.offsetHeight !== lastHeight) {
|
||||
if (document.body.offsetHeight !== lastHeight && document.body.offsetHeight > 10) {
|
||||
lastHeight = document.body.offsetHeight;
|
||||
window.parent.postMessage(JSON.stringify({ remarkIframeHeight: lastHeight }), '*');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user