From 0b078d235df70601ab5d4561b8bbad0890e706c5 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Thu, 14 Sep 2017 17:39:15 +0200 Subject: [PATCH] Use visibility: hidden to hide webviews --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;