diff --git a/index.js b/index.js index d6f4746..0b0f7f4 100644 --- a/index.js +++ b/index.js @@ -8,12 +8,12 @@ if (!document) { (function () { const styles = ` webview { - display: flex; - flex: 0 1; + visibility: hidden; width: 0px; height: 0px; } webview.visible { + visibility: visible; width: 100%; height: 100%; top: 0;