nodejs: fix mobile size for chrome on iOS (Fix Bug 59054)

This commit is contained in:
Sergey Linnik
2023-10-23 18:02:51 +03:00
parent d3a08acec3
commit f096fd4d93

View File

@ -336,11 +336,18 @@
}
};
var onDocumentReady = function(){
if (config.type === "mobile") {
document.getElementsByTagName("iframe")[0].style.height = window.innerHeight + "px";
}
};
config = {
<%- include("config") %>
};
config.events = {
"onAppReady": onAppReady,
"onDocumentReady": fixSize,
"onDocumentStateChange": onDocumentStateChange,
"onError": onError,
"onOutdatedVersion": onOutdatedVersion,