Make sure we focus inner iframe contents if the webview itself is already focused

This commit is contained in:
Matt Bierner 2021-02-12 18:24:17 -08:00
parent a0e0324a8d
commit 647a4b044a

View file

@ -591,6 +591,10 @@
contentWindow.addEventListener('scroll', handleInnerScroll);
contentWindow.addEventListener('wheel', handleWheel);
if (document.hasFocus()) {
contentWindow.focus();
}
pendingMessages.forEach((data) => {
contentWindow.postMessage(data, '*');
});